:root {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    background: #f9f9f9;
    font-family: "Noto Sans", "Noto Sans Arabic", "Noto Sans Thai", Arial, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
}

h1, h2, h3 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

h2 {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    font-size: 1.8rem;
}

p {
    font-size: 1.05rem;
}

.hero {
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-size: 2.6rem;
}

.hero p {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 1.3rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgb(0 0 0 / 30%);
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.store-badge img {
    display: block;
    height: 60px;
    border: 0;
}

.screenshots-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 20px auto 30px;
    padding: 10px 0 20px;
    scrollbar-color: rgb(0 0 0 / 30%) transparent;
    scrollbar-width: thin;
}

.screenshots-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
}

.screenshot-item {
    flex: 0 0 280px;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
    transition: transform .3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
}

main section {
    margin-bottom: 30px;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

.problem-section {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.problem-section h2 {
    color: #e67e22;
}

.problem-cards {
    display: grid;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}

.problem-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgb(52 73 94 / 7%);
}

.problem-card .icon {
    flex: 0 0 auto;
    font-size: 1.8rem;
}

.problem-card-title {
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
}

.problem-card-desc {
    color: #555;
}

.value-section,
.recommended-section {
    background: #fff;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.value-item {
    padding: 26px;
    text-align: center;
    background: #f8f9fa;
    border-inline-start: 5px solid #3498db;
    border-radius: 10px;
}

.value-item > i {
    display: block;
    margin-bottom: 14px;
    color: #3498db;
    font-size: 2.7rem;
}

.value-item h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.value-item p {
    margin: 0;
    color: #555;
    text-align: start;
}

.solution-section {
    background: #ecf0f1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    padding: 22px 12px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.feature-item i {
    margin-bottom: 12px;
    color: #3498db;
    font-size: 2.5rem;
}

.feature-item h3 {
    margin: 0;
    font-size: 1.05rem;
}

.recommended-list {
    max-width: 650px;
    margin: 0 auto;
}

.recommended-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommended-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.recommended-list i {
    width: 22px;
    margin-inline-end: 10px;
    color: #27ae60;
}

.download-section {
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    box-shadow: 0 5px 15px rgb(0 0 0 / 20%);
}

.download-section h2 {
    color: #fff;
    border-bottom: 0;
}

.legal-links {
    margin-top: 22px;
}

.btn-secondary {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: #1da1f2;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: #0d8bd9;
}

footer {
    padding: 20px;
    color: #777;
    text-align: center;
    border-top: 1px solid #eee;
}

[dir="rtl"] .problem-card,
[dir="rtl"] .value-item p,
[dir="rtl"] .recommended-list {
    text-align: right;
}

[dir="rtl"] .screenshots-wrapper {
    direction: rtl;
}

@media (max-width: 768px) {
    .container {
        width: min(960px, calc(100% - 24px));
    }

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

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

    .app-icon {
        width: 68px;
        height: 68px;
    }

    main section {
        padding: 30px 15px;
    }

    .screenshot-item {
        flex-basis: 220px;
    }

    .value-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .value-item {
        padding: 18px 12px;
    }

    .value-item p {
        font-size: .9rem;
    }
}

@media (max-width: 420px) {
    .hero-title {
        gap: 12px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .store-badge img {
        height: 50px;
        max-width: 100%;
    }
}
