:root {
    --primary: #4f7cff;
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #333;
    --header-gradient-start: var(--primary);
    --header-gradient-end: var(--primary);
}

body.dark {
    --bg: #0f1120;
    --card: #1a1d36;
    --text: #eaeaf0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}

header {
    background: linear-gradient(135deg, var(--header-gradient-start), var(--header-gradient-end));
    color: #fff;
    padding: 20px 20px 40px;
    text-align: center;
}

header h1 {
    font-size: 38px;
    margin-bottom: 16px;
}

header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 5px;
}

.btn {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 10px 38px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.top-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 9999;
}

.toggle {
    background: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px;
}

.slider img {
    width: 280px;
    max-width: 80vw;
    border-radius: 28px;
    scroll-snap-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .slider {
        justify-content: center;
    }
}

.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.store-badge {
    height: 38px !important;
    cursor: pointer;
}

@media (max-width: 480px) {
    .store-badge {
        height: 44px;
    }
}

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

.feature {
    background: var(--card);
    border-radius: 22px;
    padding: 26px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
}

footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 6px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
}

header .rating {
    justify-content: center;
}

header .rating-meta {
    color: rgba(255, 255, 255, 0.85);
}

.rating-score {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
    color: #f5c518;
}

.rating-meta {
    font-size: 13px;
    color: var(--muted);
}

.rating-bar {
    width: 120px;
    height: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    width: 90%; /* 4.5+ */
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}
