:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #111827;
    --muted: #5f6b7a;
    --faint: #7b8794;
    --line: #e1e7ef;
    --accent: #334155;
    --accent-soft: #f1f5f9;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    --radius: 8px;
    --sticky-header-offset: 88px;
}

* {
    box-sizing: border-box;
    min-width: 0;
}

html {
    background: var(--bg);
    scroll-padding-top: var(--sticky-header-offset);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    text-rendering: optimizelegibility;
}

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

a:hover {
    color: var(--accent);
}

p {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

li,
h1,
h2,
h3 {
    overflow-wrap: anywhere;
}

img,
svg {
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.site-header,
.hero,
.app-preview,
.privacy-note,
.closing,
.footer {
    width: min(1040px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    background: rgba(248, 250, 252, 0.66);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 720;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.brand img,
.hero-icon,
.closing > img {
    border-radius: 22%;
    filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14));
}

.brand img {
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
    transition: filter 160ms ease, transform 160ms ease;
}

.brand:hover,
.brand:focus-visible {
    color: #020617;
    text-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.brand:hover img,
.brand:focus-visible img {
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.2));
    transform: translateY(-1px);
}

.nav-links,
.footer nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 520;
}

.nav-links a,
.footer nav a,
.page-footer nav a {
    position: relative;
    color: inherit;
    transition: color 160ms ease;
}

.nav-links a::after,
.footer nav a::after,
.page-footer nav a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: currentcolor;
    content: "";
    opacity: 0;
    transform: scaleX(0.65);
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.footer nav a:hover,
.footer nav a:focus-visible,
.footer nav a[aria-current="page"],
.page-footer nav a:hover,
.page-footer nav a:focus-visible,
.page-footer nav a[aria-current="page"] {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.footer nav a:hover::after,
.footer nav a:focus-visible::after,
.page-footer nav a:hover::after,
.page-footer nav a:focus-visible::after {
    opacity: 0.35;
    transform: scaleX(1);
}

.nav-links a[aria-current="page"]::after,
.footer nav a[aria-current="page"]::after,
.page-footer nav a[aria-current="page"]::after {
    opacity: 0.75;
    transform: scaleX(1);
}

.hero {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 64px 0 52px;
    text-align: center;
}

.hero-icon {
    width: 116px;
    height: 116px;
    margin-bottom: 24px;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    letter-spacing: 0;
}

h1 {
    width: 100%;
    max-width: 1040px;
    font-size: clamp(42px, 5.6vw, 66px);
    line-height: 1;
    font-weight: 760;
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    font-weight: 740;
}

h3 {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.hero-copy {
    width: 100%;
    max-width: 690px;
    margin-top: 24px;
    font-size: 20px;
}

.store-group {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 26px;
}

.store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--faint);
    font-size: 14px;
    font-weight: 650;
    transition: filter 160ms ease, transform 160ms ease;
}

.store-cta:hover,
.store-cta:focus-visible {
    filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.16));
    transform: translateY(-1px);
}

.store-requirements {
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.app-store-badge {
    width: 187px;
    height: auto;
}

.privacy-note p {
    font-size: 18px;
}

.app-preview {
    padding: 52px 0 0;
}

.app-preview-heading {
    max-width: 660px;
    margin-inline: auto;
    text-align: center;
}

.app-preview-gallery {
    display: grid;
    grid-auto-columns: minmax(660px, 82%);
    grid-auto-flow: column;
    gap: 24px;
    margin-top: 38px;
    padding: 0 0 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--faint) transparent;
}

.app-preview-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.app-preview-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.app-preview-trigger:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: -3px;
}

.app-preview-trigger img {
    width: 100%;
    height: auto;
}

.image-lightbox {
    width: min(calc(100vw - 32px), calc(160vh - 52px), 1800px);
    height: auto;
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.52);
}

.image-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.image-lightbox-stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.image-lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

.image-lightbox-counter,
.image-lightbox-close,
.image-lightbox-control {
    position: absolute;
    z-index: 1;
}

.image-lightbox-counter {
    top: 18px;
    left: 20px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.image-lightbox-close,
.image-lightbox-control {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    place-items: center;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    transition: background 160ms ease, opacity 160ms ease;
}

.image-lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 30px;
}

.image-lightbox-previous {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
}

.image-lightbox-next {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.image-lightbox-close:hover,
.image-lightbox-control:hover {
    background: rgba(51, 65, 85, 0.92);
}

.image-lightbox-close:focus-visible,
.image-lightbox-control:focus-visible {
    outline: 3px solid #f8fafc;
    outline-offset: 3px;
}

.image-lightbox-control:disabled {
    cursor: default;
    opacity: 0.32;
}

.app-preview-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 660px;
    margin: 34px auto 0;
    padding-left: 24px;
}

.app-preview-features li {
    padding-left: 4px;
    color: var(--muted);
    font-size: 16px;
}

.app-preview-features li::marker {
    color: var(--accent);
}

.privacy-note {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 104px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.privacy-note h2 {
    font-size: clamp(28px, 3.5vw, 40px);
}

.privacy-note p {
    max-width: 720px;
    margin-top: 14px;
}

.text-link {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 15px;
    font-weight: 750;
}

.closing {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 104px 0 88px;
    text-align: center;
}

.closing-note {
    max-width: 980px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
    white-space: normal;
}

.store-group-centered {
    margin-top: 8px;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0 48px;
    border-top: 1px solid var(--line);
}

.footer p {
    font-size: 14px;
}

.page-shell {
    width: min(880px, calc(100% - 48px));
    margin-inline: auto;
}

.page-header {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    background: rgba(248, 250, 252, 0.66);
    backdrop-filter: blur(18px);
}

.page-hero {
    padding: 54px 0 42px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 68px);
}

.section-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.section-jump-links a {
    color: var(--faint);
    font-size: 14px;
    font-weight: 700;
}

.section-jump-links a:hover {
    color: var(--ink);
}

.page-hero p {
    max-width: 690px;
    margin-top: 22px;
    font-size: 20px;
}

.content-section {
    padding: 58px 0 0;
}

.content-section h2 {
    margin-bottom: 22px;
    font-size: 32px;
}

.content-section h2:not(:first-child) {
    margin-top: 38px;
}

.content-section h3 {
    margin-top: 34px;
}

.content-section p + p {
    margin-top: 12px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item,
.notice-card,
.contact-card,
.release-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq-item h3,
.notice-card h3,
.contact-card h3,
.release-card h3 {
    margin-top: 0;
}

.faq-item p,
.notice-card p,
.contact-card p,
.release-card p {
    margin-top: 10px;
}

.support-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.support-list li + li {
    margin-top: 8px;
}

.faq-item code,
.notice-card code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 0.94em;
    overflow-wrap: anywhere;
}

.command-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.command-copy code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 4px;
    background: transparent;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.command-copy button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.command-copy button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.command-copy button[data-copy-state="success"] {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.command-copy button[data-copy-state="fallback"] {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.contact-card {
    display: grid;
    gap: 18px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
}

.button-link:hover {
    color: #ffffff;
    background: #1f2937;
}

.release-card ul {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.release-card li + li {
    margin-top: 8px;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 70px;
    padding: 30px 0 44px;
    border-top: 1px solid var(--line);
}

.page-footer p {
    font-size: 14px;
}

.page-footer nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 760px) {
    :root {
        --sticky-header-offset: 168px;
    }

    .site-header,
    .page-header,
    .footer,
    .page-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header,
    .hero,
    .app-preview,
    .privacy-note,
    .closing,
    .footer,
    .page-shell {
        width: calc(100% - 32px);
        max-width: calc(100vw - 32px);
    }

    .nav-links,
    .footer nav,
    .page-footer nav {
        gap: 14px 18px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 54px 0 64px;
    }

    h1 {
        font-size: 34px;
        line-height: 1.04;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .hero-icon {
        width: 112px;
        height: 112px;
        margin-bottom: 28px;
    }

    .hero-copy,
    .page-hero p {
        font-size: 17px;
    }

    .store-cta {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .store-group-centered {
        align-items: center;
    }

    .app-preview {
        padding-top: 68px;
    }

    .app-preview-gallery {
        grid-auto-columns: minmax(280px, 84vw);
        gap: 18px;
        margin-top: 30px;
        padding-bottom: 14px;
    }

    .image-lightbox {
        width: min(calc(100vw - 20px), calc(160vh - 32px));
        height: auto;
    }

    .image-lightbox-counter {
        top: 12px;
        left: 14px;
    }

    .image-lightbox-close,
    .image-lightbox-control {
        width: 40px;
        height: 40px;
    }

    .image-lightbox-previous {
        left: 8px;
    }

    .image-lightbox-next {
        right: 8px;
    }

    .app-preview-features {
        gap: 12px;
        margin-top: 28px;
    }

    .privacy-note {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 70px;
        padding: 26px 22px;
    }

    .closing {
        padding: 76px 0 68px;
    }

    .closing-note {
        white-space: normal;
    }

}

@media (max-width: 520px) {
    .site-header,
    .hero,
    .app-preview,
    .privacy-note,
    .closing,
    .footer,
    .page-shell {
        width: min(358px, calc(100% - 32px));
        margin-left: 16px;
        margin-right: auto;
    }

    h1 {
        font-size: 32px;
    }

    .hero-copy,
    .privacy-note p,
    .page-hero p {
        font-size: 16px;
    }

    .faq-item,
    .notice-card,
    .contact-card,
    .release-card {
        padding: 22px;
    }
}
