:root {
    --color-primary: #21893a;
    --color-primary-light: #e8f5f0;
    --color-primary-dark: #1b7333;
    --color-primary-darker: #0f5520;
    --color-text-main: #0a0e27;
    --color-text-secondary: #525968;
    --color-text-tertiary: #7f8797;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fc;
    --color-border: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 60px rgba(33, 137, 58, 0.15);
    --radius-card: 20px;
    --radius-pill: 999px;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Hide all language pages by default; show only .active */
  .lang-page {
    display: none;
  }
  
  .lang-page.active {
    display: block;
  }
  
  /* Containers & layout */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }
  
  /* HEADER */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
  }
  
  .logo {
    height: 40px;
    width: auto;
    display: block;
    transition: transform var(--transition-smooth);
  }

  .logo:hover {
    transform: scale(1.05);
  }

  .main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 auto;
  }

  .main-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    position: relative;
    transition: color var(--transition-fast);
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 999px;
    transition: width var(--transition-smooth);
  }

  .main-nav a:hover {
    color: var(--color-primary);
  }

  .main-nav a:hover::after {
    width: 100%;
  }
  
  .lang-switcher {
    display: flex;
    gap: 0.4rem;
  }

  .lang-switch-btn {
    border: 1.5px solid var(--color-border);
    background-color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  }

  .lang-switch-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
  }

  .lang-switch-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(33, 137, 58, 0.3);
  }
  
  /* HERO */
  .hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, rgba(33, 137, 58, 0.02) 0%, rgba(33, 137, 58, 0.01) 100%);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 137, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .hero-text {
    flex: 1;
    animation: slideInLeft 0.6s ease-out;
  }

  .hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    line-height: 1.2;
    color: var(--color-text-main);
  }

  .hero-text p {
    margin: 0 0 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .hero-bullets {
    margin: 0 0 2rem;
    padding-left: 0;
    color: var(--color-text-secondary);
    list-style: none;
  }

  .hero-bullets li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.2rem;
  }

  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: slideInUp 0.6s ease-out 0.2s both;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
  }

  .btn:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(33, 137, 58, 0.25);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(33, 137, 58, 0.35);
  }

  .btn-secondary {
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(33, 137, 58, 0.1);
  }

  .btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 137, 58, 0.2);
  }

  .btn-full {
    width: 100%;
  }
  
  /* Hero visual mockups */
  .hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.6s ease-out;
  }

  .hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    animation: float 3s ease-in-out infinite;
    transition: transform var(--transition-smooth);
  }

  .hero-image:hover {
    transform: translateY(-10px);
  }

  .mockup-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
  }

  .mockup-phone {
    width: 200px;
    height: 360px;
    border-radius: 32px;
    border: 8px solid #111;
    padding: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: #111;
    position: relative;
    transition: transform var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
  }

  .mockup-phone:hover {
    transform: translateY(-10px);
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
  }

  .mockup-phone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 140px;
    height: 28px;
    background: #111;
    border-radius: 0 0 20px 20px;
    transform: translateX(-50%);
  }

  .mockup-phone-screen {
    border-radius: 24px;
    background: linear-gradient(135deg, #eafff2 0%, #ffffff 100%);
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
  }

  .mockup-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(33, 137, 58, 0.3);
  }

  .mockup-phone-screen p {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 500;
  }

  .mockup-dash {
    width: 280px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    padding: 1.2rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    animation: slideUp 0.8s ease-out 0.3s both;
  }

  .mockup-dash:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.18);
  }

  .mockup-dash-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
  }

  .mockup-dash-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    animation: pulse 2s ease-in-out infinite;
  }

  .mockup-dash h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: var(--color-text-main);
  }

  .mockup-dash ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
  }

  .mockup-dash li {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
  }

  .mockup-dash li + li {
    margin-top: 0.4rem;
  }

  .status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: 0.6rem;
    flex-shrink: 0;
  }

  .status-in {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(33, 137, 58, 0.5);
    animation: blink 2s ease-in-out infinite;
  }

  .status-out {
    background-color: #9ca3af;
  }
  
  /* Sections */
  .section {
    padding: 4.5rem 0;
  }

  .section-alt {
    background-color: var(--color-bg-alt);
  }

  .section h2 {
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.3;
  }
  
  /* Layout helpers */
  .two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: flex-start;
  }

  .two-cols > div:first-child p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .check-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  .check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    transition: transform var(--transition-fast), color var(--transition-fast);
  }

  .check-list li:hover {
    transform: translateX(4px);
    color: var(--color-text-main);
  }

  .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  /* Feature grid */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .feature-card {
    background-color: #fff;
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }

  .feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
  }

  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary-light);
  }

  .feature-card:hover::before {
    transform: scaleX(1);
  }

  .feature-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
  }

  .feature-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Steps */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
  }

  .step-card {
    background-color: #fff;
    border-radius: var(--radius-card);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    padding-top: 3.5rem;
    transition: all var(--transition-smooth);
    text-align: center;
  }

  .step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  .step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--color-text-main);
  }

  .step-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
  }

  .step-number {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px rgba(33, 137, 58, 0.3);
    transition: transform var(--transition-smooth);
  }

  .step-card:hover .step-number {
    transform: translateX(-50%) scale(1.1);
  }
  
  /* Note text */
  .note {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(33, 137, 58, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--color-primary);
  }

  /* FAQ */
  .faq {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .faq details {
    border-radius: var(--radius-card);
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 1.2rem;
    transition: all var(--transition-smooth);
    overflow: hidden;
  }

  .faq details:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(33, 137, 58, 0.1);
  }

  .faq details[open] {
    background-color: var(--color-primary-light);
  }

  .faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
  }

  .faq summary::-webkit-details-marker {
    display: none;
  }

  .faq summary::after {
    content: "+";
    font-weight: 700;
    color: var(--color-primary);
    transition: transform var(--transition-smooth);
  }

  .faq details[open] summary::after {
    content: "−";
    transform: rotate(0deg);
  }

  .faq summary:hover {
    color: var(--color-primary);
  }

  .faq p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Contact */
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .contact-grid > div:first-child {
    animation: slideInLeft 0.6s ease-out;
  }

  .contact-grid > div:first-child p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
  }

  .contact-form {
    background-color: #fff;
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    animation: slideInRight 0.6s ease-out;
    transition: all var(--transition-smooth);
  }

  .contact-form:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  }

  .form-row {
    margin-bottom: 1.5rem;
  }

  .form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
  }

  .form-row input,
  .form-row textarea {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid var(--color-border);
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    background-color: #fff;
  }

  .form-row input::placeholder,
  .form-row textarea::placeholder {
    color: var(--color-text-tertiary);
  }

  .form-row input:focus,
  .form-row textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(33, 137, 58, 0.1);
    background-color: rgba(33, 137, 58, 0.01);
  }
  
  /* Footer */
  .site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 2rem;
    background-color: #fff;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
  }

  .footer-inner p {
    margin: 0;
    line-height: 1.6;
  }

  .footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .footer-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
  }

  .footer-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
  }

  .footer-links a:hover {
    color: var(--color-primary);
  }

  .footer-links a:hover::after {
    width: 100%;
  }
  
  /* RTL Adjustments (Arabic) */
  .section-rtl,
  .hero-rtl {
    direction: rtl;
    text-align: right;
  }
  
  .hero-inner-rtl {
    flex-direction: row-reverse;
  }
  
  .two-cols-rtl {
    direction: rtl;
  }
  
  .header-inner-rtl {
    flex-direction: row-reverse;
  }
  
  .main-nav-rtl {
    flex-direction: row-reverse;
  }
  
  .lang-switcher-rtl {
    order: -1;
  }
  
  .contact-grid-rtl {
    direction: rtl;
  }
  
  .footer-inner-rtl {
    direction: rtl;
  }
  
  .footer-links-rtl {
    justify-content: flex-start;
  }
  
  /* Animations */
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }

  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.6;
    }
  }

  /* Responsive */
  @media (max-width: 900px) {
    .hero {
      padding: 4rem 0 3rem;
    }

    .hero-inner {
      flex-direction: column;
      gap: 2.5rem;
    }

    .hero-visual {
      order: -1;
    }

    .hero-text h1 {
      font-size: 2.2rem;
    }

    .two-cols,
    .contact-grid {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }

    .header-inner {
      flex-wrap: wrap;
      gap: 1rem;
    }

    .main-nav {
      display: none;
    }

    .section {
      padding: 3.5rem 0;
    }

    .section h2 {
      font-size: 1.6rem;
    }

    .feature-grid,
    .steps-grid {
      gap: 1.5rem;
    }

    .step-card {
      text-align: left;
    }

    .step-number {
      position: relative;
      transform: none;
      margin-bottom: 1rem;
    }

    .step-card:hover .step-number {
      transform: scale(1.1);
    }
  }

  @media (max-width: 600px) {
    .hero {
      padding: 3rem 0 2rem;
    }

    .hero-text h1 {
      font-size: 1.8rem;
    }

    .hero-text p {
      font-size: 1rem;
    }

    .hero-cta {
      flex-direction: column;
    }

    .btn {
      width: 100%;
      justify-content: center;
      padding: 0.75rem 1.5rem;
    }

    .mockup-phone {
      width: 160px;
      height: 300px;
    }

    .mockup-dash {
      width: 240px;
    }

    .section h2 {
      font-size: 1.4rem;
      margin-bottom: 1.75rem;
    }

    .feature-grid,
    .steps-grid {
      grid-template-columns: 1fr;
    }

    .two-cols > div:first-child p {
      font-size: 1rem;
    }

    .main-nav a {
      font-size: 0.85rem;
      gap: 1rem;
    }

    .contact-form {
      padding: 1.5rem;
    }

    .form-row {
      margin-bottom: 1rem;
    }
  }
  