:root {
    --primary-color: #007AFF;
    --text-color: #333;
    --bg-color: #fff;
    --gray-light: #f5f5f5;
    --gray-medium: #666;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

.language-selector select {
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    background: var(--bg-color);
    cursor: pointer;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0 4rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
}

.hero-icon {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.hero-text {
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: left;
}

.hero h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.hero li {
    margin: 0.5rem 0;
}

/* App Store Badge */
.app-download {
    margin-top: 2.5rem;
    text-align: left;
}

.app-store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 4rem 0;
}

.features-section h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.features-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.features-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.features-section li {
    margin: 0.75rem 0;
    line-height: 1.8;
}

.features-section strong {
    color: var(--text-color);
}

/* Bottom App Store Badge */
.app-download-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.download-cta {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* VisionOS Screenshot Section */
.visionos-screenshot-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Minimum height to ensure app is visible */
}

.visionos-screenshot {
    width: 100%;
    height: auto;
    max-height: 100vh; /* Maximum height is viewport height */
    object-fit: cover;
    object-position: center;
    display: block;
}

.content {
    padding: 2rem 0;
}

.content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content ul, .content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content li {
    margin: 0.5rem 0;
}

/* Footer */
.site-footer {
    background: var(--gray-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-nav a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* RTL Support */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .content ul,
[dir="rtl"] .content ol {
    padding-right: 2rem;
    padding-left: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem;
        text-align: center;
    }

    .app-download {
        text-align: center;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .features-section h2 {
        font-size: 1.5rem;
    }

    .visionos-screenshot-section {
        min-height: 40vh; /* Smaller minimum height on mobile */
    }

    .visionos-screenshot {
        max-height: 80vh; /* Limit height more on mobile */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}