:root {
  --primary: #170066;
  --secondary: #96cb36;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.6);
  --border-color: #babedc;
  --header-height: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 24px;
  min-height: 100vh;
}

body[dir="ltr"] {
  font-family: "Poppins", "Rubik", sans-serif;
}

/* Header */
.header {
  background-color: var(--surface);
  box-shadow: rgba(0, 0, 0, 0.02) 1px 1px 2px 0px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
}

.header__inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  user-select: none;
}

.lang-switcher:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang-switcher__flag {
  width: 21px;
  height: 15px;
  border-radius: 3px;
  display: block;
}

.lang-switcher__label {
  font-size: 15px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn--outlined {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.btn--outlined:hover {
  background: rgba(23, 0, 102, 0.04);
}

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

.btn--primary:hover {
  background: #1a0075;
}

.btn--secondary {
  background: var(--secondary);
  color: #fff;
}

.btn--secondary:hover {
  background: #85b530;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  z-index: 200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

body[dir="ltr"] .mobile-sidebar {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
}

.mobile-sidebar.is-open {
  transform: translateX(0);
}

.mobile-sidebar__close {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: inherit;
}

.mobile-sidebar__nav {
  list-style: none;
}

.mobile-sidebar__nav li {
  margin-bottom: 4px;
}

.mobile-sidebar__nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.mobile-sidebar__nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-sidebar__divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 16px 0;
}

.mobile-sidebar__contact {
  margin-top: 24px;
}

.mobile-sidebar__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
}

.mobile-sidebar__contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Content */
.main {
  max-width: 750px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 0;
}

.update-section {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  text-align: justify;
}

.update-section .text {
  opacity: 0.87;
}

.update-section .date {
  font-weight: 500;
}

.welcome-section {
  margin: 56px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  text-align: justify;
}

.custom-section {
  margin-bottom: 56px;
}

.custom-section__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 12px;
}

.custom-section__description {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 8px;
}

.custom-section__list {
  list-style: disc;
  padding-inline-start: 25px;
  margin: 0;
}

.custom-section__list-item {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 4px;
}

.closing-text {
  margin-top: 56px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  text-align: justify;
}

/* Chat button */
.chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
  z-index: 90;
}

body[dir="ltr"] .chat-btn {
  right: auto;
  left: 24px;
}

.chat-btn:hover {
  transform: scale(1.05);
}

.chat-btn svg {
  width: 28px;
  height: 28px;
}

/* ================================
   LANDING PAGE STYLES
   ================================ */

/* Navigation links in header */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a0d6e 100%);
  color: #fff;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--secondary);
  color: #fff;
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.hero__cta:hover {
  background: #85b530;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(150, 203, 54, 0.35);
}

/* Section common */
.section {
  padding: 100px 24px;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(23, 0, 102, 0.08);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), #3d1a8a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* How it works */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  opacity: 0.2;
}

body[dir="rtl"] .steps::before {
  right: 28px;
}

body[dir="ltr"] .steps::before {
  left: 28px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3d1a8a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.step__content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step__content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
}

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item.is-open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
  padding: 0 28px 24px;
}

.faq-item__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 0, 102, 0.08);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info__item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info__item p,
.contact-info__item a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-decoration: none;
}

.contact-info__item a:hover {
  color: var(--primary);
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 64px 24px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer__brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

.footer__col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 12px;
}

.footer__col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--secondary);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
}

.footer__socials a:hover {
  background: var(--secondary);
  color: #fff;
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header__actions .lang-switcher,
  .header__actions .btn--outlined {
    display: none;
  }

  .main {
    padding: 32px 16px 64px;
  }

  .page-title {
    font-size: 24px;
  }

  .custom-section__title {
    font-size: 16px;
  }

  .custom-section__description,
  .custom-section__list-item,
  .welcome-section,
  .closing-text {
    font-size: 15px;
    line-height: 22px;
  }

  .hero {
    padding: 64px 20px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .section {
    padding: 64px 20px;
  }

  .section__title {
    font-size: 28px;
  }

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

  .steps::before {
    display: none;
  }

  .step {
    padding: 24px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

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

/* Utility */
.hidden {
  display: none !important;
}
