:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-gradient-1: #4f46e5;
  --bg-gradient-2: #1f0d48;
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --accent-primary: #4f46e5;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --pricing-bg: linear-gradient(135deg, #f8fafc, #f1f5f9);
  --pricing-card-bg: #ffffff;
  --pricing-note-bg: #f8fafc;
  --toggle-bg: #e5e7eb;
  --toggle-border: #d1d5db;
  --toggle-icon: "☀";
}

[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-gradient-1: #6366f1;
  --bg-gradient-2: #8b5cf6;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --accent-primary: #818cf8;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  --pricing-bg: linear-gradient(135deg, #1f2937, #111827);
  --pricing-card-bg: #1f2937;
  --pricing-note-bg: #1f2937;
  --toggle-bg: #4b5563;
  --toggle-border: #6b7280;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

header {
  background: linear-gradient(
    135deg,
    var(--bg-gradient-1),
    var(--bg-gradient-2)
  );
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://www.odb.co.il/images/ODB-Private-Agents.jpg") center/cover;
  opacity: 0.3;
  z-index: 1;
}

.logo-container img {
  max-width: 35%;
}

.logo-container {
  margin: 5%;
  position: absolute;
  transition: transform 0.3s ease;
  z-index: 2;
}

.logo-container:hover {
  transform: scale(1.05);
}

[dir="rtl"] .theme-toggle {
  left: 20px;
  right: initial;
}

[dir="rtl"] header::before {
  transform: scaleX(-1);
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  gap: 60px;
}

.header-text {
  flex: 1;
  max-width: 600px;
}

header h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
  font-size: 1.5rem;
  margin: 0 0 2rem;
  opacity: 0.9;
}

.header-image {
  flex: 1;
  max-width: 600px;
}

.header-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.content {
  max-width: 1400px;
  margin: -100px auto 60px;
  padding: 0 40px;
  position: relative;
  z-index: 3;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 120px;
  padding: 20px;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 80%;
  margin: 0;
}

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

.feature-card h3 {
  color: var(--accent-primary);
  margin: 0 0 15px;
  font-size: 1.75rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.2rem;
  flex-grow: 1;
}

/* Pricing section */
.pricing-section {
  background: var(--pricing-bg);
  border-radius: 30px;
  padding: 80px 40px;
  margin: 80px 0;
  text-align: center;
}

.pricing-section h2 {
  font-size: 3rem;
  color: var(--text-primary);
  margin: 0 0 20px;
  font-weight: 800;
}

.pricing-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--pricing-card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.pricing-card h3 {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin: 0 0 20px;
}

.pricing-card.rtl h3 {
  text-align: right;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.pricing-card li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

[dir="rtl"] .pricing-card li {
  text-align: right;
}

.pricing-card li::before {
  content: "✓";
  color: var(--accent-primary);
  font-weight: bold;
}

.pricing-note {
  background: var(--pricing-note-bg);
  border-radius: 15px;
  padding: 30px;
  margin-top: 60px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note.rtl {
  text-align: right;
}

.pricing-note h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0 0 15px;
}

.pricing-note p {
  font-size: 1.1rem;
  margin: 0;
}

.pricing-note li {
  font-size: 17px;
  font-weight: 500;
  padding: 3px 0;
}

.cta-section {
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 30px;
  padding: 80px 40px;
  box-shadow: var(--card-shadow);
  margin-top: 40px;
}

.cta-section h2 {
  font-size: 3.5rem;
  color: var(--text-primary);
  margin: 0 0 40px;
  font-weight: 800;
  line-height: 1.2;
}

.cta {
  display: inline-block;
  /* background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2)); */
  background: linear-gradient(135deg, #2f27c4, #7c3aed);
  color: #fff;
  text-decoration: none;
  padding: 25px 50px;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
}

.no-credit-card {
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

.no-access {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  overflow: hidden; /* hides overflow */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
}

.no-access .scroll-text.rtl {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-right 25s linear infinite;
  will-change: transform; /* smoother animation */
}

.no-access .scroll-text {
  display: inline-block;
  white-space: nowrap; /* keep text in one line */
  animation: scroll-left 25s linear infinite;
  will-change: transform; /* smoother animation */
}

.no-access .scroll-text:hover {
  animation-play-state: paused;
}

.scroll-text a {
  color: var(--bg-gradient-1);
}

footer {
  background-color: rgba(15, 14, 46, 0.95);
  backdrop-filter: blur(10px);
  width: 100%;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

footer p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 480px) {
  footer {
    padding: 1rem 0;
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .no-access {
    font-size: 14px;
  }
}

.theme-toggle {
  position: fixed;
  top: 45px;
  right: 20px;
  z-index: 1000;
  background: var(--toggle-bg);
  border: 2px solid var(--toggle-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle::before {
  content: var(--toggle-icon);
}

[data-theme="dark"] .header-image img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cta {
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .cta:hover {
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.5);
}

@media (max-width: 1400px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .features-grid {
    margin-bottom: 100px;
  }

  header h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  header {
    min-height: auto;
    padding: 80px 20px;
  }

  .header-content {
    flex-direction: column;
    padding: 0 20px;
    gap: 40px;
  }

  .header-text {
    text-align: center;
  }

  header h1 {
    font-size: 2.5rem;
    margin-top: 50px;
  }

  .logo-container {
    margin: 40px 5%;
  }

  header p {
    font-size: 1.25rem;
  }

  .content {
    padding: 0 20px;
    margin-top: -60px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-grid {
    margin-bottom: 60px;
  }

  .feature-card,
  .pricing-card {
    padding: 30px;
  }

  .pricing-section,
  .cta-section {
    padding: 40px 20px;
    border-radius: 20px;
  }

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

  .cta {
    padding: 20px 40px;
    font-size: 1.25rem;
  }
}
