/* Cefour Landing Page Styles - Modern Card UI */
:root {
  --primary-light: #8DBFC9;
  --primary: #2CA3BB;
  --primary-dark: #1B6475;
  --secondary-light: #FBD098;
  --secondary: #FFA42D;
  --secondary-dark: #DB8F1B;
  --font-main: 'Segoe UI', 'Arial', sans-serif;
  --bg-gradient: linear-gradient(135deg, #eaf6fa 0%, #fafdff 100%);
  --card-shadow: 0 4px 24px rgba(44,163,187,0.10);
}

html {
  box-sizing: border-box;
  font-size: 16px;
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--primary-dark);
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  transition: box-shadow 0.3s, background 0.3s, height 0.3s, padding 0.3s;
  box-shadow: none;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-radius: 0 0 24px 24px;
  margin-bottom: 2rem;
}
.header.scrolled {
  box-shadow: 0 4px 18px rgba(44,163,187,0.10);
  background: #fff;
  height: 64px;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.logo {
  height: 48px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
#lang-switch {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,164,45,0.10);
}
#lang-switch:hover {
  background: var(--secondary-dark);
}
nav a, .nav-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.5rem;
  font-size: 1rem;
  transition: color 0.2s;
}
nav a:hover, .nav-link:hover {
  color: var(--primary);
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
}
#hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  background: linear-gradient(120deg, #eaf6fa 60%, #fff 100%);
  min-height: 340px;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(44,163,187,0.10);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}
.hero-content {
  flex: 1 1 320px;
  max-width: 520px;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44,163,187,0.10);
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.hero-image {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 340px;
}
.hero-image img {
  width: 100%;
  max-width: 260px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(44,163,187,0.10);
}
.features-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.features-flex h3 {
  margin-top: 0;
  color: var(--primary);
}
.features-flex ul {
  padding-left: 1.2rem;
}
.goals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.goal-badge {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  border-radius: 16px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(255,164,45,0.08);
}
.footer {
  background: #fff;
  color: var(--primary-dark);
  text-align: center;
  padding: 2rem 0 1rem 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 8px rgba(44,163,187,0.06);
  margin-top: 2rem;
}
.footer a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.5rem;
}
.footer a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .header, main {
    padding: 1rem;
  }
  #hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  .hero-image {
    margin-top: 2rem;
    max-width: 100%;
  }
  .features-flex {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .logo {
    height: 36px;
  }
  .section {
    padding: 1rem;
  }
  .footer {
    padding: 1rem 0;
  }
}
/* RTL Support */
/* html[dir="rtl"] .header, html[dir="rtl"] main {
  flex-direction: row-reverse;
} */

/* Set direction: rtl only for text containers */
html[dir="rtl"] body,
html[dir="rtl"] .section,
html[dir="rtl"] .features-flex {
  direction: rtl;
}

/* Ensure .features-flex wraps on small screens */
.features-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .features-flex {
    grid-template-columns: 1fr;
  }
}

/* Language Switcher Dropdown */
.lang-switcher {
  position: relative;
  margin-left: 1.5rem;
}
#lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--primary-dark);
  border: none;
  border-radius: 12px;
  padding: 0.4rem 1.1rem 0.4rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44,163,187,0.08);
  transition: box-shadow 0.2s, background 0.2s;
  min-width: 120px;
}
#lang-switch-btn:focus {
  outline: 2px solid var(--primary);
}
.lang-caret {
  font-size: 1.1em;
  margin-left: 0.3em;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(44,163,187,0.13);
  padding: 0.5rem 0;
  z-index: 100;
  margin-top: 0.2rem;
}
.lang-switcher.open .lang-dropdown {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  color: var(--primary-dark);
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 8px;
}
.lang-option:hover, .lang-option:focus {
  background: var(--primary-light);
  color: var(--primary);
}
.lang-option.selected {
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-weight: 700;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44,163,187,0.10);
}
#current-flag {
  width: 22px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  margin-right: 0.3em;
}
@media (max-width: 600px) {
  .lang-switcher {
    margin-left: 0.5rem;
  }
  #lang-switch-btn {
    min-width: 90px;
    font-size: 0.98rem;
    padding: 0.3rem 0.7rem;
  }
  .lang-dropdown {
    min-width: 110px;
  }
}

/* Store Chooser Modal */
.store-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,163,187,0.18);
  z-index: 1;
}
.store-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(44,163,187,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
}
.store-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-dark);
  cursor: pointer;
  z-index: 3;
}
.store-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.store-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  background: #fafdff;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(44,163,187,0.08);
  transition: background 0.18s, box-shadow 0.18s;
}
.store-link:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(44,163,187,0.13);
}
.store-link svg {
  display: block;
  margin-bottom: 0.3rem;
}
@media (max-width: 600px) {
  .store-modal-content {
    min-width: 0;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .store-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* App Preview Section */
#app-preview {
  margin-top: 0;
}
#app-preview-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  font-size: 1.6rem;
  font-weight: 700;
}
.app-preview-row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) #fafdff;
}
.app-preview-row::-webkit-scrollbar {
  height: 8px;
}
.app-preview-row::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 8px;
}
.app-preview-img {
  flex: 0 0 140px;
  aspect-ratio: 9/16;
  height: 280px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(44,163,187,0.13);
  background: #fafdff;
  object-fit: cover;
  border: 2px solid #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}
.app-preview-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(44,163,187,0.18);
}
@media (max-width: 900px) {
  .app-preview-img {
    height: 200px;
    flex-basis: 90px;
  }
}
@media (max-width: 600px) {
  .app-preview-row {
    gap: 0.7rem;
  }
  .app-preview-img {
    height: 120px;
    flex-basis: 60px;
    border-radius: 10px;
  }
}

/* App Preview Carousel */
.app-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 700px;
  height: 480px;
  min-width: 320px;
  overflow: visible;
  background: transparent;
  border-radius: 24px;
  /* box-shadow: 0 4px 24px rgba(44,163,187,0.08); */
  perspective: 1000px;
  margin: 0 auto;
}
.app-carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
  width: 100%;
  position: relative;
}
.app-carousel-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(.4,1.4,.6,1), opacity 0.3s;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  width: 260px;
  height: 480px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,163,187,0.13);
  background: #fff;
  border: 2px solid #eaf6fa;
}
.app-carousel-img.center {
  transform: translate(-50%, -50%) scale(1.1) rotateY(0deg) translateZ(0);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}
.app-carousel-img.left {
  transform: translate(-120%, -50%) scale(0.8) rotateY(30deg) translateZ(-80px);
  z-index: 2;
  opacity: 0.8;
}
.app-carousel-img.right {
  transform: translate(20%, -50%) scale(0.8) rotateY(-30deg) translateZ(-80px);
  z-index: 2;
  opacity: 0.8;
}
.app-carousel-img.far {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.app-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  z-index: 10;
  opacity: 0.92;
}
.app-carousel-arrow.left {
  left: 1.5rem;
}
.app-carousel-arrow.right {
  right: 1.5rem;
}
.app-carousel-arrow:hover {
  background: #fff;
  color: #111;
}
@media (max-width: 900px) {
  .app-carousel, .app-carousel-track {
    width: 320px;
    height: 240px;
  }
  .app-carousel-img, .app-carousel-img.center, .app-carousel-img.left, .app-carousel-img.right {
    width: 110px;
    height: 200px;
  }
}
@media (max-width: 600px) {
  .app-carousel, .app-carousel-track {
    width: 120px;
    height: 110px;
  }
  .app-carousel-img, .app-carousel-img.center, .app-carousel-img.left, .app-carousel-img.right {
    width: 60px;
    height: 110px;
  }
} 