:root {
    --primary-color: #007AFF;
    --accent-color: #FF9500;
    --text-color: #1c1c1e;
    --bg-color: #fff;
    --gray-light: #f2f4f7;
    --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 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.site-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.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 */
.hero {
    background: linear-gradient(160deg, #0a4d8c 0%, #1284c8 45%, #35c0c8 100%);
    color: white;
    padding: 5rem 0 0;
    overflow: hidden;
}

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

.hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.hero-text {
    max-width: 600px;
    padding-bottom: 5rem;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: start;
}

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

.hero-shot {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.hero-shot-image {
    width: 300px;
    height: auto;
    border-radius: 28px 28px 0 0;
    border: 6px solid rgba(255, 255, 255, 0.9);
    border-bottom: none;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.3);
    display: block;
}

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

.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 h2:first-child {
    margin-top: 0;
}

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

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

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

/* Gallery */
.gallery-section {
    background: var(--gray-light);
    padding: 4rem 0;
}

.gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: end;
}

.gallery-item {
    margin: 0;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    background: #fff;
    display: block;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-watch {
    grid-column: 1 / -1;
}

.gallery-item-watch img {
    width: auto;
    max-width: 100%;
    height: 220px;
    margin: 0 auto;
    border-radius: 28px;
}

.gallery-item figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-medium);
}

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

.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;
}

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

/* Article content (privacy policy) */
.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-inline-start: 2rem;
}

.content li {
    margin: 0.5rem 0;
}

.content a {
    color: var(--primary-color);
}

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

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

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.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;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 2;
    }
}

@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 {
        padding-top: 3rem;
    }

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

    .hero-text {
        padding-bottom: 0;
        text-align: center;
    }

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

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

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

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

    .hero-shot-image {
        width: 240px;
    }

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

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

    .gallery-item-wide {
        grid-column: span 1;
    }

    .visionos-screenshot-section {
        min-height: 40vh;
    }

    .visionos-screenshot {
        max-height: 80vh;
    }

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