/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    background-color: #1e40af;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-1px);
}

.btn-secondary {
    color: #1e40af;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.btn-secondary:hover {
    color: #1e3a8a;
}

.btn-outline {
    border: 2px solid #d1d5db;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.btn-white {
    background-color: white;
    color: #1e40af;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-white:hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
}

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

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-primary:hover .arrow,
.btn-white:hover .arrow {
    transform: translateX(4px);
}

/* Utility Classes */
.text-blue {
    color: #1e40af;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

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

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: #1e40af;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.logo-text {
    margin-left: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 4rem;
    min-height: 3rem;
    text-align: center;
}

.lang-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
}

.lang-btn.active {
    background-color: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-text {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .hero-buttons {
    flex-direction: column;
}

[dir="rtl"] .benefits-grid {
    direction: ltr;
}

[dir="rtl"] .benefit-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .feature {
    direction: rtl;
}

[dir="rtl"] .feature-content {
    text-align: right;
}

[dir="rtl"] .feature-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-icon {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .feature-reverse {
    direction: ltr;
}

[dir="rtl"] .feature-reverse .feature-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-row {
    direction: ltr;
}

[dir="rtl"] .form-group {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .form-submit {
    text-align: center;
}

[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

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

[dir="rtl"] .arrow {
    margin-left: 0;
    margin-right: 0.5rem;
    transform: scaleX(-1);
}

/* Hero Section */
.hero {
    padding: 4rem 0 5rem;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
}

.screenshot-container {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.screenshot {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background-color: #f59e0b;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background-color: #f9fafb;
}

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

.section-header h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 32rem;
    margin: 0 auto;
}

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

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.benefit-icon.clock {
    background-color: #dbeafe;
}

.benefit-icon.trending {
    background-color: #fef3c7;
}

.benefit-icon.check {
    background-color: #d1fae5;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.benefit-card p {
    color: #6b7280;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

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

.feature-reverse {
    direction: rtl;
}

.feature-reverse > * {
    direction: ltr;
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.feature-icon.documents {
    background-color: #dbeafe;
}

.feature-icon.calendar {
    background-color: #fef3c7;
}

.feature-icon.analytics {
    background-color: #d1fae5;
}

.feature h3 {
    color: #1f2937;
}

.feature p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.feature-image img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.faq-list {
    max-width: 4xl;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-icon {
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: #1e40af;
}

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

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.cta p {
    color: #bfdbfe;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: white;
}

.contact-form-container {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 4xl;
    margin: 0 auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

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

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 3rem 0;
}

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

.footer-contact {
    display: flex;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #d1d5db;
}

.contact-icon {
    margin-right: 0.5rem;
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-reverse {
        direction: ltr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}