:root {
  --primary-color: #2D3E6F;
  --primary-light: #5A6A94;
  --secondary-color: #FB7991;
  --accent-red: #EF4444;
  --accent-yellow: #F59E0B;
  --accent-green: #10B981;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --bg-light: #F8F9FC;
  --bg-white: #FFFFFF;
  --gradient-main: linear-gradient(135deg, #2D3E6F 0%, #4B5E8F 100%);
  --gradient-accent: linear-gradient(135deg, #FB7991 0%, #FDA4B4 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-lg: 1rem;
  --font-heading: 'Rubik', sans-serif;
  --font-body: 'Heebo', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-light);
}

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

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  direction: rtl;
  /* Keep Hebrew layout (logo right) for both languages */
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.footer-img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: 20px;
}

.nav-right-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-switcher {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 20px;
}

.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: 16px;
  transition: all 0.2s;
  opacity: 0.5;
}

.lang-btn.active {
  opacity: 1;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  opacity: 1;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

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

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 4px solid #333;
}

.screen {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #E5E5E5;
  /* WhatsApp-like bg */
}

.chat-header {
  background: #075E54;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lilo-avatar {
  font-size: 1.5rem;
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-info .name {
  font-weight: bold;
  font-size: 0.9rem;
}

.chat-info .status {
  font-size: 0.7rem;
  opacity: 0.8;
}

.chat-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  transition: filter 0.3s ease;
}

/* Chat Messages */
.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 8px;
  /* space between messages */
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message.strike-through {
  text-decoration: line-through;
  opacity: 0.6;
  transition: all 0.5s ease;
}

/* RTL (Hebrew): User/Green on Right, Bot/White on Left */
.message.user {
  align-self: flex-start;
  /* Right in RTL */
  background: #DCF8C6;
  border-top-right-radius: 0;
  text-align: right;
}

.message.bot {
  align-self: flex-end;
  /* Left in RTL */
  background: white;
  border-top-left-radius: 0;
  text-align: right;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* LTR (English): User/Green on LEFT, Bot/White on RIGHT - SWAPPED */
[dir="ltr"] .message.user {
  align-self: flex-start;
  /* Left in LTR */
  border-top-right-radius: 12px;
  border-top-left-radius: 0;
  text-align: left;
}

[dir="ltr"] .message.bot {
  align-self: flex-end;
  /* Right in LTR */
  border-top-left-radius: 12px;
  border-top-right-radius: 0;
  text-align: left;
}

.chat-body.blurred {
  filter: blur(4px);
}

.mentor-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mentor-popup.red {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #EF4444;
  color: #991B1B;
}

.mentor-popup.green {
  background: #DCF8C6;
  /* Match WhatsApp green or slightly richer */
  border: 2px solid #10B981;
  color: #064E3B;
}

.mentor-popup.fade-out {
  opacity: 0;
  transform: translate(-50%, -40%);
  /* Slide up slightly while fading */
  transition: all 0.5s ease;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.chat-input-area {
  background: #f0f0f0;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 11;
  /* Keep input above blur if desired, or same level */
}

.input-placeholder {
  flex: 1;
  height: 30px;
  background: white;
  border-radius: 15px;
}

.send-btn {
  width: 30px;
  height: 30px;
  background: #075E54;
  border-radius: 50%;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.badge-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 20%;
  left: -20px;
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.legal-page header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legal-page main {
  padding: 120px 2rem 4rem;
  /* 70px header + 50px extra space */
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.legal-page section {
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-page p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* Footer Legal Links */
.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  margin: 0 0.5rem;
}

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

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Problem Section Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card .icon-box {
  margin: 0 auto 1.5rem;
}

/* Solution Section */
.solution-section {
  background: white;
}

.solution-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-list i {
  color: var(--secondary-color);
}

.illustration-box {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  position: relative;
  /* Placeholder for generated image or cool CSS art */
  background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

/* Traffic Light */
.traffic-light-section {
  background: var(--bg-light);
}

.traffic-light-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.traffic-light-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.traffic-light-item:hover {
  transform: translateY(-5px);
}

.light-circle {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.audience-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.audience-img {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* CTA */
.cta-section {
  background: var(--gradient-main);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  position: relative;
}

.footer-links a:hover {
  opacity: 1;
}

/* Desktop pipes using pseudo-elements */
@media (min-width: 769px) {
  .footer-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -1rem;
    opacity: 0.3;
    pointer-events: none;
  }

  /* RTL support for pipes */
  [dir="rtl"] .footer-links a:not(:last-child)::after {
    right: auto;
    left: -1rem;
  }
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  /* Changed from white to dark */
  font-weight: 500;
  transition: all 0.2s ease;
  opacity: 0.8;
  /* Slightly mute them so they don't look too heavy */
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--primary-color);
  opacity: 1;
  transform: translateY(-1px);
  /* Subtle lift effect */
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.2s;
}

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

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Mobile Menu Implementation needed for full functionality, hiding for now */
  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .solution-container {
    grid-template-columns: 1fr;
  }

  .solution-visual {
    order: -1;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 0;
  }

  .footer-links a {
    font-size: 1.1rem;
    padding: 0.5rem;
    /* Better touch target */
  }

  .floating-badge {
    display: none;
  }
}

/* Page Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 80px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(45, 62, 111, 0.1);
  /* Primary color light opacity */
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Bett 2026 Landing Page Styles */
.bett-hero {
  padding: 160px 0 100px;
  text-align: center;
  background: var(--gradient-main);
  color: white;
  position: relative;
  overflow: hidden;
}

.bett-hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.bett-hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.video-section {
  padding: 100px 0;
  background: white;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-placeholder {
  color: white;
  text-align: center;
}

.video-placeholder i {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  cursor: pointer;
  transition: transform 0.3s;
}

.video-placeholder i:hover {
  transform: scale(1.1);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 50px 0 100px;
}

.cta-card {
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.cta-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cta-card p {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.cta-card .btn {
  align-self: center;
}

.bett-footer {
  background: var(--text-dark);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.bett-logo {
  height: 60px;
  margin-bottom: 1rem;
}

[dir="rtl"] .bett-hero h1, 
[dir="rtl"] .bett-hero p,
[dir="rtl"] .cta-card h3,
[dir="rtl"] .cta-card p {
  text-align: center;
}

@media (max-width: 768px) {
  .bett-hero h1 {
    font-size: 2.5rem;
  }
  .bett-hero p {
    font-size: 1.1rem;
  }
}
