@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Questrial&family=Playfair+Display:wght@600;700&family=Tajawal:wght@400;500;700&family=Cairo:wght@500;600;700&family=Noto+Sans:wght@400;500;600&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

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

:root {
    --al-primary: #4B72A6;
    --al-primary-light: #7B9CC6;
    --al-primary-dark: #3A5A85;
    --al-secondary: #4F6273;
    --al-secondary-light: #6B7F91;
    --al-accent-gold: #A68A56;
    --al-white: #ffffff;
    --al-gray-50: #DFE9F2;
    --al-gray-100: #EDF2F8;
    --al-gray-200: #C8D5E0;
    --al-gray-300: #A0B0C0;
    --al-gray-600: #4F6273;
    --al-gray-700: #2A2A2A;
    --al-gray-800: #0D0D0D;
    --al-bg: #DFE9F2;
    --al-surface: #ffffff;
    --al-text: #0D0D0D;
    --al-text-secondary: #4F6273;
    --al-text-muted: #6B7F91;
    --al-border: #C8D5E0;
    --al-card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    
    --font-body-en: "Raleway", "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading-en: "Questrial", "Playfair Display", serif;
    --font-heading-en-h2: "Questrial", "Raleway", sans-serif;
    --font-body-ar: "Tajawal", "Noto Sans Arabic", sans-serif;
    --font-heading-ar: "Cairo", sans-serif;
    --font-heading-ar-h2: "Tajawal", sans-serif;
    --font-input: "Noto Sans", "Cairo", "Segoe UI", Tahoma, sans-serif;
}

[data-theme="dark"] {
    --al-primary: #7B9CC6;
    --al-primary-light: #4B72A6;
    --al-primary-dark: #3A5A85;
    --al-secondary: #6B7F91;
    --al-secondary-light: #A0B0C0;
    --al-accent-gold: #C4A97A;
    --al-white: #0D0D0D;
    --al-gray-50: #0D0D0D;
    --al-gray-100: #1A1A1A;
    --al-gray-200: #2A2A2A;
    --al-gray-300: #4F6273;
    --al-gray-600: #A0B0C0;
    --al-gray-700: #DFE9F2;
    --al-gray-800: #DFE9F2;
    --al-bg: #0D0D0D;
    --al-surface: #1A1A1A;
    --al-text: #DFE9F2;
    --al-text-secondary: #A0B0C0;
    --al-text-muted: #6B7F91;
    --al-border: #2A2A2A;
    --al-card-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] body.landing-page {
    background: linear-gradient(160deg, #0D0D0D 0%, #141418 30%, #1a1f2e 60%, #0D0D0D 100%);
    background-attachment: fixed;
    color: var(--al-text);
}

[data-theme="dark"] .landing-navbar {
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-theme="dark"] .landing-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-links a {
    color: var(--al-text);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--al-primary);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(90deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.7) 50%, rgba(13,13,13,0.3) 100%);
}

[dir="rtl"][data-theme="dark"] .hero-overlay {
    background: linear-gradient(270deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.7) 50%, rgba(13,13,13,0.3) 100%);
}

[data-theme="dark"] .hero-text h1 {
    color: var(--al-text);
}

[data-theme="dark"] .hero-text p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .hero-buttons .btn-secondary {
    background: var(--al-primary);
    color: #fff;
}

[data-theme="dark"] .hero-buttons .btn-secondary:hover {
    background: var(--al-primary-light);
}

[data-theme="dark"] .legal-stages-section {
    background: var(--al-bg);
}

[data-theme="dark"] .stage-card {
    background: var(--al-surface);
    border-color: var(--al-border);
}

[data-theme="dark"] .stage-card:hover {
    background: var(--al-gray-200);
    border-color: var(--al-gray-300);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .stage-icon {
    color: var(--al-primary);
}

[data-theme="dark"] .stage-card h3 {
    color: var(--al-text);
}

[data-theme="dark"] .stage-card p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .features-section {
    background: transparent;
}

[data-theme="dark"] .section-header h2 {
    color: var(--al-text);
}

[data-theme="dark"] .section-header p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .feature-card {
    background: rgba(26, 26, 26, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

[data-theme="dark"] .feature-icon {
    color: var(--al-primary);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--al-text);
}

[data-theme="dark"] .feature-card p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .benefits-section {
    background: transparent;
}

[data-theme="dark"] .benefits-text h2 {
    color: var(--al-text);
}

[data-theme="dark"] .benefit-icon {
    color: var(--al-primary);
}

[data-theme="dark"] .benefit-content h3 {
    color: var(--al-text);
}

[data-theme="dark"] .benefit-content p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .benefits-image {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .testimonials-section {
    background: var(--al-surface);
}

[data-theme="dark"] .testimonial-card {
    background: var(--al-surface);
    border: 1px solid var(--al-border);
    box-shadow: none;
}

[data-theme="dark"] .testimonial-content {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .author-avatar {
    background: var(--al-primary-dark);
}

[data-theme="dark"] .author-info h4 {
    color: var(--al-text);
}

[data-theme="dark"] .author-info p {
    color: var(--al-text-muted);
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--al-bg) 0%, var(--al-gray-50) 50%, var(--al-surface) 100%);
    border-top: 1px solid var(--al-border);
    border-bottom: 1px solid var(--al-border);
}

[data-theme="dark"] .cta-section h2 {
    color: var(--al-text);
}

[data-theme="dark"] .cta-section p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .cta-section .btn-secondary {
    background: var(--al-primary);
    color: #fff;
}

[data-theme="dark"] .cta-section .btn-secondary:hover {
    background: var(--al-primary-light);
}

[data-theme="dark"] .faq-section {
    background: var(--al-bg);
}

[data-theme="dark"] .faq-question {
    background: var(--al-surface);
    border: 1px solid var(--al-border);
}

[data-theme="dark"] .faq-question:hover {
    background: var(--al-gray-200);
}

[data-theme="dark"] .faq-question span {
    color: var(--al-text);
}

[data-theme="dark"] .faq-chevron {
    color: var(--al-primary);
}

[data-theme="dark"] .faq-answer p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .contact-section {
    background: var(--al-surface);
}

[data-theme="dark"] .contact-info h2 {
    color: var(--al-text);
}

[data-theme="dark"] .contact-subtitle {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .contact-icon {
    color: var(--al-primary);
}

[data-theme="dark"] .contact-item h3 {
    color: var(--al-text);
}

[data-theme="dark"] .contact-item p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .contact-form-card {
    background: var(--al-surface);
    border: 1px solid var(--al-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .contact-form-card h3 {
    color: var(--al-text);
}

[data-theme="dark"] .form-group label {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--al-gray-50);
    border-color: var(--al-border);
    color: var(--al-text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--al-primary);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--al-text-muted);
}

[data-theme="dark"] .btn-primary {
    background: var(--al-primary);
    color: #fff;
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--al-primary-light);
}

[data-theme="dark"] .landing-footer {
    background: linear-gradient(to bottom, #0D0D0D, #4F6273);
    border-top: 1px solid var(--al-border);
}

[data-theme="dark"] .landing-footer,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .footer-contact,
[data-theme="dark"] .footer-logo-text {
    color: var(--al-text);
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .footer-contact {
    opacity: 0.85;
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--al-primary);
    opacity: 1;
}

[data-theme="dark"] .social-links a {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .social-links a:hover {
    color: var(--al-primary);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--al-border);
}

[data-theme="dark"] .footer-bottom a {
    color: var(--al-primary);
}

[data-theme="dark"] .mobile-nav {
    background: var(--al-surface);
    border-top-color: var(--al-border);
}

[data-theme="dark"] .mobile-nav a {
    color: var(--al-text);
}

[data-theme="dark"] .mobile-nav a:hover {
    color: var(--al-primary);
}

[data-theme="dark"] .lang-dropdown-menu {
    background: var(--al-surface);
    border-color: var(--al-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .lang-dropdown-header {
    color: var(--al-text-muted);
}

[data-theme="dark"] .lang-option {
    color: var(--al-text);
}

[data-theme="dark"] .lang-option:hover {
    background: var(--al-gray-200);
}

[data-theme="dark"] .lang-option.active {
    background: rgba(249, 115, 22, 0.12);
}

[data-theme="dark"] .lang-option.active .lang-option-check {
    color: var(--al-primary);
}

[data-theme="dark"] .lang-option-code {
    color: var(--al-text-muted);
}

[data-theme="dark"] .lang-option.active .lang-option-code {
    color: var(--al-primary);
}

[data-theme="dark"] .lang-option-name {
    color: var(--al-text);
}

[data-theme="dark"] .header-btn {
    background: var(--al-surface);
    border-color: var(--al-border);
    color: var(--al-text);
}

[data-theme="dark"] .header-btn:hover {
    background: var(--al-gray-200);
    border-color: var(--al-primary);
    color: var(--al-primary);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body.landing-page {
    font-family: var(--font-body-en);
    line-height: 1.6;
    color: var(--al-gray-800);
    background: linear-gradient(160deg, #DFE9F2 0%, #E4EDF5 25%, #EAF0F6 50%, #DFE9F2 75%, #D8E4EF 100%);
    background-attachment: fixed;
}

[dir="rtl"] body.landing-page {
    font-family: var(--font-body-ar);
}

[dir="rtl"] body.landing-page h1 {
    font-family: var(--font-heading-ar);
    font-weight: 700;
}

[dir="rtl"] body.landing-page h2 {
    font-family: var(--font-heading-ar-h2);
    font-weight: 500;
}

[dir="rtl"] body.landing-page h3,
[dir="rtl"] body.landing-page h4,
[dir="rtl"] body.landing-page h5,
[dir="rtl"] body.landing-page h6 {
    font-family: var(--font-heading-ar);
    font-weight: 700;
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page h4 {
    font-family: var(--font-heading-en);
}

body.landing-page h2 {
    font-family: var(--font-heading-en-h2);
}

body.landing-page input,
body.landing-page textarea,
body.landing-page select {
    font-family: var(--font-input);
}

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

.hidden {
    display: none !important;
}

/* Navbar */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.landing-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.landing-navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

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

.logo {
    height: 28px;
    width: auto;
}

.theme-logo {
    filter: brightness(0) saturate(100%) invert(18%) sepia(30%) saturate(1800%) hue-rotate(190deg) brightness(90%) contrast(95%);
}

[data-theme="dark"] .theme-logo {
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
    .logo {
        height: 40px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--al-gray-700);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.desktop-nav {
    display: none;
}

.mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-header-controls {
        display: none;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--al-gray-700);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-header-controls .header-btn {
    width: 36px;
    height: 36px;
}

.mobile-nav {
    background: var(--al-white);
    padding: 1rem;
    border-top: 1px solid var(--al-gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--al-gray-700);
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
}

.mobile-nav a:hover {
    background: var(--al-gray-100);
    color: var(--al-primary);
}

/* Header Controls (Theme & Language Toggle) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: 1rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--al-gray-200);
    border-radius: 8px;
    background: var(--al-white);
    cursor: pointer;
    color: var(--al-gray-700);
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: var(--al-gray-100);
    border-color: var(--al-primary);
    color: var(--al-primary);
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.header-btn.lang-toggle-btn {
    width: auto;
    padding: 0 12px;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.header-btn.lang-toggle-btn .lang-globe {
    font-size: 1rem;
    line-height: 1;
}

.header-btn.lang-toggle-btn .lang-code {
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-header-controls .header-btn.lang-toggle-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 0.8rem;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn .sun-icon {
    display: block;
}

.theme-btn .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-btn .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-btn .moon-icon {
    display: block;
}

/* Theme slide toggle (legacy) */
.theme-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 64px;
    height: 32px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--al-gray-200, #e8e8e8);
    border: 1px solid var(--al-gray-200);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.theme-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.theme-switch-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    pointer-events: none;
}

.theme-switch .sun-icon {
    color: var(--al-secondary);
}

.theme-switch .moon-icon {
    color: var(--al-text-muted);
}

[data-theme="dark"] .theme-switch {
    background: var(--al-gray-50);
    border-color: var(--al-border);
}

[data-theme="dark"] .theme-switch-knob {
    transform: translateX(32px);
    background: var(--al-primary);
    box-shadow: 0 1px 4px rgba(249,115,22,0.4);
}

[data-theme="dark"] .theme-switch .sun-icon {
    color: var(--al-text-muted);
}

[data-theme="dark"] .theme-switch .moon-icon {
    color: var(--al-secondary-light);
}

.mobile-header-controls .theme-switch {
    width: 54px;
    height: 28px;
}

.mobile-header-controls .theme-switch-knob {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .mobile-header-controls .theme-switch-knob {
    transform: translateX(26px);
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--al-white);
    border: 1px solid var(--al-gray-200);
    border-radius: 12px;
    padding: 0.375rem;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-dropdown-header {
    padding: 0.5rem 0.75rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--al-gray-500, var(--al-text-muted));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: var(--al-gray-700);
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
    border-radius: 8px;
    transition: background 0.15s;
}

[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}

.lang-option:hover {
    background: var(--al-gray-100, #F3F4F6);
}

.lang-option.active {
    background: rgba(249, 115, 22, 0.08);
}

.lang-option-check {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.lang-option.active .lang-option-check {
    color: var(--al-primary);
}

.lang-option-code {
    font-weight: 600;
    font-size: 0.8125rem;
    min-width: 24px;
    color: var(--al-gray-500, var(--al-text-muted));
}

.lang-option.active .lang-option-code {
    color: var(--al-primary);
}

.lang-option-name {
    color: var(--al-gray-700);
}

/* Mobile controls */
.mobile-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--al-gray-200);
}

/* Buttons */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--al-secondary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-body-en);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

[dir="rtl"] .btn-secondary {
    font-family: var(--font-body-ar);
}

.btn-secondary:hover {
    background: var(--al-secondary-light);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--al-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-body-en);
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

[dir="rtl"] .btn-primary {
    font-family: var(--font-body-ar);
}

.btn-primary:hover {
    background: var(--al-primary-light);
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--al-gray-200);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--al-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switcher:hover {
    border-color: var(--al-gray-300);
    color: var(--al-gray-800);
}

.flag {
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background-image: url('/static/images/landing/hero-bg.png');
    background-size: cover;
    background-position: 30% top;
    background-repeat: no-repeat;
    overflow: hidden;
}

[dir="rtl"] .hero-section {
    background-position: 70% top;
}

.hero-bg-image {
    display: none;
}

[dir="rtl"] .hero-bg-image {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.6) 50%, rgba(0,51,102,0.3) 100%);
    pointer-events: none;
}

[dir="rtl"] .hero-overlay {
    background: linear-gradient(270deg, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.6) 50%, rgba(0,51,102,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 60%;
    color: var(--al-white);
}

.hero-text h1 {
    font-family: var(--font-heading-en);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

[dir="rtl"] .hero-text h1 {
    font-family: var(--font-heading-ar);
    letter-spacing: 0;
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

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

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
    }
    
    .hero-bg-image {
        width: 100%;
        opacity: 0.2;
    }
    
    .hero-overlay {
        background: linear-gradient(180deg, rgba(0,51,102,0.8) 0%, rgba(0,51,102,0.7) 100%);
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        letter-spacing: -0.5px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: clamp(3rem, 4.5vw, 4.5rem);
    }
    
    .hero-text p {
        font-size: 1.25rem;
    }
}

/* Legal Reasoning Stages Section */
.legal-stages-section {
    background: var(--al-gray-100);
    padding: 4rem 0;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stage-card {
    background: var(--al-white);
    padding: 1.5rem;
    border: 1px solid var(--al-gray-200);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.stage-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: transparent;
}

.stage-icon {
    width: 40px;
    height: 40px;
    color: var(--al-secondary);
    margin-bottom: 1rem;
}

.stage-icon svg {
    width: 100%;
    height: 100%;
}

.stage-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.75rem;
}

.stage-card p {
    font-size: 0.875rem;
    color: var(--al-gray-600);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    background: transparent;
    padding: 4rem 0;
}

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

.section-header h2 {
    font-family: var(--font-heading-en-h2);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

[dir="rtl"] .section-header h2 {
    font-family: var(--font-heading-ar-h2);
    font-weight: 500;
    letter-spacing: 0;
}

.section-header p {
    font-size: 1rem;
    color: var(--al-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--al-secondary);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--al-gray-600);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background: transparent;
    padding: 4rem 0;
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .benefits-content {
        flex-direction: row;
        align-items: center;
    }
    
    .benefits-text {
        flex: 1;
        padding-right: 3rem;
    }
    
    [dir="rtl"] .benefits-text {
        padding-right: 0;
        padding-left: 3rem;
    }
    
    .benefits-image {
        flex: 1;
    }
}

.benefits-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--al-primary);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .benefits-text h2 {
        font-size: 2.25rem;
    }
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--al-secondary);
    margin-top: 0.25rem;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    font-size: 0.875rem;
    color: var(--al-gray-600);
}

.benefits-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.benefits-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.benefits-image:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--al-primary) 0%, var(--al-primary-light) 100%);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-placeholder svg {
    width: 120px;
    height: 120px;
    color: rgba(255,255,255,0.3);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--al-white);
    padding: 4rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--al-gray-50);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.star {
    font-size: 1rem;
    color: var(--al-gray-300);
}

.star.filled {
    color: var(--al-secondary);
}

.star.half {
    background: linear-gradient(90deg, var(--al-secondary) 50%, var(--al-gray-300) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating {
    font-size: 0.875rem;
    color: var(--al-gray-600);
    margin-left: 0.5rem;
}

[dir="rtl"] .rating {
    margin-left: 0;
    margin-right: 0.5rem;
}

.testimonial-content {
    font-size: 0.9375rem;
    color: var(--al-gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--al-primary);
    color: var(--al-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--al-primary);
}

.author-info p {
    font-size: 0.8125rem;
    color: var(--al-gray-600);
}

/* CTA Section */
.cta-section {
    background: rgba(75, 114, 166, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 2.25rem;
    }
}

/* FAQ Section */
.faq-section {
    background: var(--al-white);
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--al-gray-50);
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    background: var(--al-gray-100);
}

.faq-question span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--al-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--al-gray-600);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: transparent;
    padding: 4rem 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-content {
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
        padding-right: 3rem;
    }
    
    [dir="rtl"] .contact-info {
        padding-right: 0;
        padding-left: 3rem;
    }
    
    .contact-form-wrapper {
        flex: 1;
    }
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--al-primary);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: var(--al-gray-600);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--al-secondary);
    margin-top: 0.25rem;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--al-gray-600);
}

.phone-number {
    direction: ltr;
    unicode-bidi: isolate;
}

[dir="rtl"] .phone-number {
    text-align: right;
}

.contact-form-card {
    background: var(--al-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--al-primary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--al-gray-600);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--al-gray-200);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--al-secondary);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.landing-footer {
    background: linear-gradient(to bottom, #4B72A6, #DFE9F2);
    color: var(--al-white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        justify-content: space-between;
    }
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--al-white);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.social-links a {
    color: var(--al-white);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--al-secondary);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--al-white);
    opacity: 0.8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--al-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    [dir="rtl"] .footer-bottom {
        text-align: right;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--al-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-contact {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-contact span {
    margin-right: 0.5rem;
}

[dir="rtl"] .footer-contact span {
    margin-right: 0;
    margin-left: 0.5rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .benefits-text h2 {
        font-size: 2.25rem;
    }
    
    .contact-info h2 {
        font-size: 2.25rem;
    }
}

/* ========================================
   Value Proof Strip
   ======================================== */
.value-proof-section {
    background: var(--al-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--al-border);
}

.value-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .value-proof-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-proof-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.value-proof-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--al-secondary);
}

.value-proof-icon svg {
    width: 100%;
    height: 100%;
}

.value-proof-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.5rem;
}

.value-proof-item p {
    font-size: 0.875rem;
    color: var(--al-gray-600);
    line-height: 1.6;
}

[data-theme="dark"] .value-proof-section {
    background: var(--al-surface);
    border-bottom-color: var(--al-border);
}

[data-theme="dark"] .value-proof-item h3 {
    color: var(--al-text);
}

[data-theme="dark"] .value-proof-item p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .value-proof-icon {
    color: var(--al-primary);
}

/* ========================================
   Persona Section
   ======================================== */
.persona-section {
    background: var(--al-gray-50);
    padding: 4rem 0;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .persona-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .persona-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.persona-card {
    background: var(--al-white);
    padding: 1.5rem;
    border: 2px solid var(--al-gray-200);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.persona-card:hover, .persona-card.active {
    border-color: var(--al-secondary);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.15);
    transform: translateY(-2px);
}

.persona-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    color: var(--al-secondary);
}

.persona-icon svg {
    width: 100%;
    height: 100%;
}

.persona-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--al-primary);
    margin-bottom: 0.5rem;
}

.persona-card p {
    font-size: 0.8125rem;
    color: var(--al-gray-600);
    line-height: 1.5;
}

[data-theme="dark"] .persona-section {
    background: var(--al-bg);
}

[data-theme="dark"] .persona-card {
    background: var(--al-surface);
    border-color: var(--al-border);
}

[data-theme="dark"] .persona-card:hover,
[data-theme="dark"] .persona-card.active {
    border-color: var(--al-primary);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

[data-theme="dark"] .persona-card h3 {
    color: var(--al-text);
}

[data-theme="dark"] .persona-card p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .persona-icon {
    color: var(--al-primary);
}

/* ========================================
   Analysis Preview Section
   ======================================== */
.analysis-preview-section {
    background: var(--al-white);
    padding: 4rem 0;
}

.analysis-preview-card {
    background: var(--al-gray-50);
    border: 1px solid var(--al-gray-200);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.analysis-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--al-gray-200);
}

.analysis-section:last-child {
    border-bottom: none;
}

.analysis-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--al-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

[dir="rtl"] .analysis-label {
    text-transform: none;
    letter-spacing: 0;
}

.analysis-section p {
    font-size: 0.9375rem;
    color: var(--al-gray-600);
    line-height: 1.7;
}

.analysis-assessment {
    background: rgba(255, 102, 0, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 102, 0, 0.15);
}

.analysis-assessment .analysis-label {
    color: var(--al-secondary);
}

.analysis-preview-cta {
    text-align: center;
    margin-top: 2rem;
}

[data-theme="dark"] .analysis-preview-section {
    background: var(--al-surface);
}

[data-theme="dark"] .analysis-preview-card {
    background: var(--al-surface);
    border-color: var(--al-border);
}

[data-theme="dark"] .analysis-section {
    border-bottom-color: var(--al-border);
}

[data-theme="dark"] .analysis-label {
    color: var(--al-primary);
}

[data-theme="dark"] .analysis-section p {
    color: var(--al-text-secondary);
}

[data-theme="dark"] .analysis-assessment {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.2);
}

/* ========================================
   Credibility Section
   ======================================== */
.credibility-section {
    background: var(--al-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.credibility-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.pricing-anchor-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.credibility-section .btn-primary {
    background: var(--al-secondary);
    color: #fff;
}

.credibility-section .btn-primary:hover {
    background: var(--al-secondary-light);
}

[data-theme="dark"] .credibility-section {
    background: linear-gradient(135deg, var(--al-gray-50) 0%, var(--al-surface) 100%);
    border-top: 1px solid var(--al-border);
    border-bottom: 1px solid var(--al-border);
}

/* ========================================
   Hero Outline Button
   ======================================== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-body-en);
    font-weight: 500;
    font-size: 0.875rem;
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

[dir="rtl"] .btn-outline {
    font-family: var(--font-body-ar);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

[data-theme="dark"] .btn-outline {
    border-color: rgba(249, 115, 22, 0.5);
    color: var(--al-primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--al-primary);
}

/* ========================================
   Hero Trust Line
   ======================================== */
.hero-trust-line {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 1.5rem;
    color: #ffffff;
}

[data-theme="dark"] .hero-trust-line {
    color: var(--al-text-secondary);
}
