/* Landing Page Styles */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --text-dark: #111827;
  --text-gray: #4b5563;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
}

.landing-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Navbar */
.landing-nav {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1200px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-sizing: border-box; /* Ensure padding doesn't overflow width */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
}

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

.nav-lang {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 18px 18px;
}

.nav-lang[data-locale="en"] {
  /* US colors */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2032%2032'%3E%3Crect%20width%3D'32'%20height%3D'32'%20rx%3D'6'%20fill%3D'%23ffffff'/%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'28'%20height%3D'28'%20rx%3D'5'%20fill%3D'%23ffffff'/%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'28'%20height%3D'28'%20rx%3D'5'%20fill%3D'%23ffffff'/%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'28'%20height%3D'28'%20rx%3D'5'%20fill%3D'%23ffffff'/%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'28'%20height%3D'28'%20rx%3D'5'%20fill%3D'%23ffffff'/%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'28'%20height%3D'28'%20rx%3D'5'%20fill%3D'%23ffffff'/%3E%3Cpath%20d%3D'M2%206h28v4H2zM2%2014h28v4H2zM2%2022h28v4H2z'%20fill%3D'%23d32f2f'/%3E%3Cpath%20d%3D'M2%202h13v12H2z'%20fill%3D'%232145b7'/%3E%3C/svg%3E");
  background-color: rgba(33, 69, 183, 0.10);
  border-color: rgba(33, 69, 183, 0.25);
}

.nav-lang[data-locale="he"] {
  /* Israel colors */
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2032%2032'%3E%3Crect%20width%3D'32'%20height%3D'32'%20rx%3D'6'%20fill%3D'%23ffffff'/%3E%3Cpath%20d%3D'M4%207h24v4H4zM4%2021h24v4H4z'%20fill%3D'%231e88e5'/%3E%3Cpath%20d%3D'M16%2011.2l3.8%206.6H12.2z'%20fill%3D'none'%20stroke%3D'%231e88e5'%20stroke-width%3D'1.8'%20stroke-linejoin%3D'round'/%3E%3Cpath%20d%3D'M16%2020.8l-3.8-6.6h7.6z'%20fill%3D'none'%20stroke%3D'%231e88e5'%20stroke-width%3D'1.8'%20stroke-linejoin%3D'round'/%3E%3C/svg%3E");
  background-color: rgba(30, 136, 229, 0.10);
  border-color: rgba(30, 136, 229, 0.25);
}

.nav-lang:focus {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.nav-lang option {
  background: #ffffff;
  color: #111827;
}

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

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

.nav-cta {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  width: 100%;
  padding: 40px 20px 30px; /* Reduced bottom padding from 60px to 30px */
  display: flex;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #f3f4f6 0%, #ffffff 70%);
  box-sizing: border-box;
}

.hero-content {
  max-width: 1000px; /* Increased from 800px to allow wider subtitle */
  animation: fadeIn 0.8s ease-out;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 24px;
  text-align: left;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  background: #fde047; /* Flat color */
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%); /* Softer gradient */
  color: #422006; /* Deep brown for engraving look */
  border: 4px solid #fcd34d;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none; /* Removed shadow completely for a flat look */
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  z-index: 10;
  flex-shrink: 0; /* Prevent shrinking in flex container */
}

/* Ribbon Left Strap */
.hero-badge::before {
  content: '';
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) rotate(-20deg);
  transform-origin: bottom center;
  width: 24px;
  height: 60px;
  background: linear-gradient(to bottom, #ef4444, #991b1b);
  z-index: -1;
  border-radius: 2px;
  box-shadow: none; /* Removed shadow */
}

/* Ribbon Right Strap */
.hero-badge::after {
  content: '';
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) rotate(20deg);
  transform-origin: bottom center;
  width: 24px;
  height: 60px;
  background: linear-gradient(to bottom, #ef4444, #991b1b);
  z-index: -1;
  border-radius: 2px;
  box-shadow: none; /* Removed shadow */
}

.hero-content h1 {
  font-size: 42px; /* Reduced from 56px */
  font-weight: 800;
  margin: 0; /* Removed margins */
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  margin: 0 auto 24px;
  max-width: 800px; /* Increased to ensure "keep it real." fits on first line */
  padding-left: 20px;
  line-height: 1.5;
  text-align: left;
}

.highlight-text {
  font-weight: 800;
  color: var(--text-dark);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px; /* Reduced from 60px */
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 48px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.5);
}

.trial-text {
  font-size: 15px; /* Increased from 13px */
  color: #9ca3af;
  margin: 0;
}

/* Steps Section */
.steps-section {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px; /* Reduced top/bottom padding from 80px 20px */
  text-align: center;
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 30px; /* Reduced from 60px */
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px; /* Reduced bottom margin from 16px */
}

.section-header p {
  font-size: 18px;
  color: var(--text-gray);
  margin: 0;
}

.steps-grid {
  display: flex; /* Changed from grid to flex to pack them tightly */
  justify-content: center; /* Center the group */
  gap: 0; /* No gap */
  align-items: start;
  max-width: 700px; /* Further constrained width from 900px */
  margin: 0 auto;
  position: relative; /* For arrows */
}

.step-arrow {
  align-self: center;
  margin-top: -40px; /* Move up to align with icons */
  opacity: 1; /* Increased from 0.6 */
}

.step-arrow svg path {
  stroke: #6366f1; /* Changed from default to primary purple */
  stroke-width: 2.5; /* Slightly thicker */
}

/* RTL: keep the visual flow consistent in Hebrew (arrows should point right-to-left) */
html[dir="rtl"] .steps-grid {
  direction: rtl;
}

/* Flip the connector arrows (more reliable to transform the container than the SVG itself) */
html[dir="rtl"] .steps-grid .step-arrow {
  transform: scaleX(-1) !important;
  transform-origin: center;
}

html[dir="rtl"] .steps-grid .step-arrow svg {
  display: block;
}

.step-card {
  padding: 0 8px; /* Reduced horizontal padding from 12px to 8px */
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* Distribute space evenly */
  z-index: 2; /* Keep above arrows */
}

.step-icon {
  font-size: 44px; /* Increased from 36px */
  margin-bottom: 8px; /* Reduced from 16px */
  background: #eff6ff;
  width: 72px; /* Increased from 64px */
  height: 72px; /* Increased from 64px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px; /* Adjusted radius */
}

.step-card h3 {
  font-size: 18px; /* Reduced from 20px */
  font-weight: 700;
  margin: 0 0 4px; /* Reduced from 8px */
}

.step-card p {
  font-size: 15px; /* Increased from 13px */
  color: var(--text-gray);
  margin: 0;
  line-height: 1.3; /* Tighter line height */
  max-width: 200px; /* Forces text to wrap earlier (approx 2 lines) */
}

/* Gallery / Comparison Section */
.comparison-section {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px 80px;
  box-sizing: border-box;
}

/* New Single Gallery Styles */
.gallery-display {
  width: 100%;
  max-width: 600px; /* Increased by ~15% from 520px */
  margin: 0 auto 50px;
}

.gallery-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
  position: relative;
  transition: transform 0.3s;
}

.card-badges {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 50;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px; /* Increased from 14px */
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.badge-style {
  background: var(--text-dark);
  color: white;
}

.comparison-slider {
  width: 100%;
  padding-top: 60%; /* Wider aspect ratio for single view */
  position: relative;
  background: #e5e7eb;
}

.comparison-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* No overflow hidden here if we want handle to pop out? 
     Actually handle should stay inside. 
     We need overflow hidden to clip images if they exceed. */
  overflow: hidden;
}

.img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

  /* Updated for clip-path approach */
.img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.5s ease-in-out, clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
  /* Default hidden (revealed 0%) */
  clip-path: inset(0 100% 0 0);
}

/* Disable animation during reset to avoid visible jumps */
.is-resetting .img-after,
.is-resetting .slider-handle {
  transition: none !important;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  z-index: 20;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0%;
  will-change: left;
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-button {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: var(--primary);
  font-weight: bold;
  font-size: 20px;
}

.slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
  margin: 0;
}

/* Labels overlay */
.slider-labels {
  position: absolute;
  bottom: 24px;
  left: 24px; /* Fixed position container */
  z-index: 25;
  pointer-events: none;
}

.label-overlay {
  position: absolute; /* Stack on top of each other */
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 20px; /* Increased from 15px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0; /* Hidden by default, shown by JS */
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.label-visible {
  opacity: 1;
}

.card-info {
  padding: 30px;
  text-align: center;
}

.card-info h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.card-info p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
}

/* Features/Use Cases Grid */
.features-section {
  width: 100%;
  background: #f9fafb;
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.features-grid {
  max-width: 900px; /* Reduced from 1200px to pull them closer */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* Slightly reduced gap */
}

.feature-card {
  background: white;
  padding: 20px 16px; /* Tighter padding */
  border-radius: 16px;
  text-align: center; /* Center align content */
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 16px; /* Increased from 14px */
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6; /* Better readability for multi-line */
  max-width: 220px; /* Force text to wrap into 4-5 lines */
}

/* Footer */
.landing-footer {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--text-gray);
  font-size: 16px; /* Increased from 14px */
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
}

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

.footer-feedback {
  color: var(--text-gray);
}

.footer-feedback a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.footer-feedback a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 42px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { gap: 20px; }
}

@media (max-width: 768px) {
  /* Keep language + start visible on mobile */
  .nav-links { display: flex; gap: 10px; }
  .nav-cta { padding: 8px 14px; }
  .nav-lang { max-width: 140px; }
  .hero-content h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; width: 100%; box-sizing: border-box; }
  .stat-divider { width: 40px; height: 1px; }
  
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .comparison-section { padding-left: 10px; padding-right: 10px; }
  
  .comparison-slider { padding-top: 100%; } /* More square on mobile */
  .slider-button { width: 40px; height: 40px; font-size: 16px; }
  
  /* Hero Title Row Stack */
  .hero-title-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .hero-content h1 {
    text-align: center;
  }
}

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