@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&family=Nunito+Sans:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-darkest: #180a0b;
    --bg-mid: #f8f3ee;
    --color-heading: #f4d7dd;
    --color-accent: #eaa9c9;
    --color-text: #ece2df;
    --color-text-dim: #cdb9b8;
    --color-text-on-light: #241620;
    --color-accent-on-light: #c15f89;
    --color-border: rgba(255, 255, 255, 0.09);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --content-width: 880px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: var(--bg-mid);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--bg-darkest);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.site-header__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-text);
}

.site-header__nav .menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.site-header__nav .menu a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
    opacity: 0.9;
}

.site-header__nav .menu a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* ---------- Hero ---------- */

.page-hero {
    background: var(--bg-darkest);
    text-align: center;
    padding: 72px 24px 56px;
}

.page-hero__inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(40px, 7vw, 68px);
    color: var(--color-heading);
    margin: 0;
    letter-spacing: -0.01em;
}

.page-hero__tagline {
    font-family: var(--font-mono);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 640px;
    margin: 24px auto 0;
}

/* ---------- Page content (rendered from the block editor) ---------- */

.page-content {
    background: var(--bg-mid);
}

.page-content__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 56px 24px 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 32px;
    align-items: center;
}

/* the download badge (last block) spans the full width; the two screenshots
   and two feature lists fall into a natural 2-column pairing before it,
   purely from their order: image/list, list/image */
.page-content__inner > :last-child {
    grid-column: 1 / -1;
}

.page-content__inner > p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-on-light);
}

.page-content__inner figure {
    margin: 0;
    text-align: center;
}

.page-content__inner img {
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.page-content__inner figcaption {
    font-size: 14px;
    color: #6b5c66;
    margin-top: 10px;
}

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

.page-content__inner ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-on-light);
}

.page-content__inner ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-on-light);
}

/* Play Store badge: last block in the content, shown as a centered CTA */
.page-content__inner a img {
    margin: 16px auto 0;
    border-radius: 10px;
    box-shadow: none;
    max-width: 280px;
    transition: transform 0.15s ease;
}

.page-content__inner a:hover img {
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.site-footer__columns {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.site-footer__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-on-light);
    margin: 0 0 12px;
}

.site-footer__nav .menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.site-footer__nav .menu a {
    font-size: 15px;
    color: var(--color-accent-on-light);
}

.site-footer__nav .menu a:hover {
    text-decoration: underline;
}

.site-footer__social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-text);
    color: var(--bg-darkest);
    transition: opacity 0.15s ease;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon--telegram {
    background: #29a9eb;
    color: #fff;
}

/* ---------- Fallback post list (index.hbs, unlikely to be visited) ---------- */

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.post-list li {
    margin-bottom: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .page-hero {
        padding: 52px 20px 40px;
    }

    .page-content__inner {
        padding: 40px 20px 56px;
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        justify-content: center;
        text-align: center;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
