:root {
    --color-primary: #7489c4;
    --color-primary-dark: #5f72a8;
    --color-on-primary: #101427;
    --color-background: #dadde5;
    --color-surface: #d1d4de;
    --color-surface-elevated: #e8eaf0;
    --color-on-background: #1f2027;
    --color-on-surface-variant: #414453;
    --color-error: #c88a8a;
    --color-outline: #9a9eb0;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(31, 32, 39, 0.12);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-on-background);
    background: linear-gradient(180deg, var(--color-background) 0%, #cfd3df 100%);
    line-height: 1.5;
}

a {
    color: var(--color-primary-dark);
}

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

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.site-header {
    padding: 1.25rem 0;
}

.hero {
    padding: 1rem 0 2.5rem;
}

.hero-card {
    background: var(--color-surface-elevated);
    border: 1px solid rgba(154, 158, 176, 0.35);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1024 / 500;
    object-fit: cover;
}

.hero-copy {
    padding: 1.5rem 1.5rem 1.75rem;
}

.hero-copy h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.hero-copy p {
    margin: 0;
    color: var(--color-on-surface-variant);
    font-size: 1.05rem;
    max-width: 62ch;
}

.features {
    padding: 0.5rem 0 2.5rem;
}

.features h2,
.screenshots h2,
.download h2 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.brand-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text p {
    margin: 0.15rem 0 0;
    color: var(--color-on-surface-variant);
    font-size: 0.95rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(154, 158, 176, 0.35);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
}

.feature-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

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

.feature-card.sos h3 {
    color: #9a4f4f;
}

.screenshots {
    padding: 0.5rem 0 2.5rem;
}

.screenshots-carousel-wrap {
    padding-inline: max(1rem, calc((100% - var(--max-width)) / 2 + 1rem));
}

.screenshot-swiper {
    padding-bottom: 0.25rem;
}

.screenshot-swiper .swiper-slide {
    width: min(220px, 72vw);
    height: auto;
}

.screenshot-swiper figure {
    margin: 0;
    height: 100%;
    background: var(--color-surface-elevated);
    border-radius: 20px;
    padding: 0.75rem;
    border: 1px solid rgba(154, 158, 176, 0.35);
    box-shadow: var(--shadow);
}

.screenshot-swiper img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.screenshot-swiper figcaption {
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-on-surface-variant);
}

.screenshot-swiper .swiper-button-prev,
.screenshot-swiper .swiper-button-next {
    color: var(--color-on-background);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(154, 158, 176, 0.45);
    box-shadow: var(--shadow);
}

.screenshot-swiper .swiper-button-prev::after,
.screenshot-swiper .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.screenshot-swiper .swiper-button-disabled {
    opacity: 0.35;
}

.download {
    padding: 0.5rem 0 3rem;
}

.download-card {
    background: var(--color-surface-elevated);
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid rgba(154, 158, 176, 0.35);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-muted {
    background: rgba(255, 255, 255, 0.55);
    color: var(--color-on-surface-variant);
    border-color: rgba(154, 158, 176, 0.45);
    cursor: default;
}

.site-footer {
    border-top: 1px solid rgba(154, 158, 176, 0.45);
    background: rgba(255, 255, 255, 0.25);
    padding: 1.75rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.footer-links a {
    font-weight: 500;
}

.footer-meta {
    color: var(--color-on-surface-variant);
    font-size: 0.95rem;
}

.footer-meta p {
    margin: 0.35rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}
