:root {
    --bg: #060607;
    --bg-soft: #0f1013;
    --border: #2b2d33;
    --text: #f6f7fb;
    --muted: #b7b9c1;
    --accent: #6f3cff;
    --accent-soft: rgba(111, 60, 255, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-image: radial-gradient(
        circle at top center,
        #191827 0%,
        var(--bg) 40%
    );
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.5;
}

.page {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 700;
}

.header-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.header-link:hover {
    color: var(--text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.lang-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.lang-link:hover {
    color: var(--text);
}

.lang-link.is-active {
    color: var(--text);
}

.lang-sep {
    color: var(--muted);
    opacity: 0.5;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.header-cta:hover {
    background: #8255ff;
    transform: translateY(-1px);
}

.hero {
    text-align: center;
    margin: 24px auto 44px;
    max-width: 900px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    line-height: 1.1;
}

.hero-subtitle {
    margin: 0 0 12px;
    color: #d9d9e2;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-description {
    margin: 0 auto 24px;
    color: var(--muted);
    max-width: 760px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
}

.store-badge-link {
    flex-shrink: 0;
    text-decoration: none;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
    height: clamp(54px, 8.5vw, 72px);
    min-width: clamp(190px, 30vw, 240px);
    padding: 0 clamp(14px, 2.5vw, 22px) 0 clamp(12px, 2vw, 18px);
    border-radius: clamp(10px, 1.4vw, 14px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: #fff;
    color: #111;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.18);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.store-badge:hover {
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.22);
}

.store-badge-icon {
    width: clamp(28px, 4.2vw, 36px);
    height: clamp(28px, 4.2vw, 36px);
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-badge-label {
    font-size: clamp(10px, 1.5vw, 13px);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #4a4a52;
}

.store-badge-name {
    font-size: clamp(17px, 2.4vw, 24px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.screenshots-section,
.features-section,
.faq-section,
.cta-section {
    margin-bottom: 46px;
}

.screenshots-section h2,
.features-section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.screenshots-grid img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.015)
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.faq-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.2;
}

.faq-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-intro a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-intro a:hover {
    color: #fff;
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 18px;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 56ch;
}

.cta-section {
    text-align: center;
    background: linear-gradient(145deg, var(--accent-soft), rgba(0, 0, 0, 0));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px 28px;
}

.cta-section p {
    margin: 0 0 8px;
    color: #dddeea;
}

.cta-section .cta-text {
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.93rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    margin: 0;
    text-align: center;
    color: #8f92a0;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page {
        width: min(1160px, calc(100% - 24px));
        padding-top: 18px;
    }

    .site-header {
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .hero {
        text-align: left;
    }

    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }

    .store-badges {
        justify-content: flex-start;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-section {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .header-cta {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .hero {
        text-align: left;
    }

    .store-badges {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .store-badge {
        width: 100%;
        max-width: 320px;
    }

    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }

    .screenshots-grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .screenshots-grid img {
        flex: 0 0 62%;
        max-height: 420px;
        scroll-snap-align: start;
    }

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

    .cta-section {
        text-align: left;
    }
}

@media (hover: hover) and (min-width: 769px) {
    .screenshots-grid img:hover {
        transform: scale(2.16);
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }
}
