:root {
    --bg: #FFFBF5;
    --surface: #FFFFFF;
    --text: #2D2A26;
    --text-muted: #6B6560;
    --accent: #F5A07A;
    --accent-hover: #E88E66;
    --border: #EDE6DD;
    --shadow: 0 2px 12px rgba(45, 42, 38, 0.06);
    --radius: 16px;
    --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1C1A17;
        --surface: #26231F;
        --text: #F5F1EB;
        --text-muted: #A8A29A;
        --accent: #F5A07A;
        --accent-hover: #FFB590;
        --border: #3A3630;
        --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
}

header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.logo-name {
    font-weight: 600;
    font-size: 18px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
}

nav a:hover {
    color: var(--text);
}

h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 24px 0 8px;
}

p {
    margin-bottom: 12px;
    color: var(--text);
}

p.lead {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 8px 0 8px 24px;
    position: relative;
}

ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 4px;
    font-weight: bold;
}

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

a:hover {
    text-decoration: underline;
}

.hero {
    padding: 32px 0 48px;
    text-align: left;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 32px; }
    nav a { margin-left: 16px; font-size: 14px; }
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.feature-emoji {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.feature h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.appstore-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    margin-top: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.appstore-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    color: #fff;
}

.appstore-cta-emoji {
    font-size: 30px;
    line-height: 1;
}

.appstore-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.appstore-cta-small {
    font-size: 11px;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.appstore-cta-big {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 64px;
    color: var(--text-muted);
    font-size: 14px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

footer a {
    color: var(--text-muted);
}

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

.policy-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

html:not([data-lang="en"]) [lang="en"],
html:not([data-lang="uk"]) [lang="uk"],
html:not([data-lang="pl"]) [lang="pl"] {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links {
    display: inline-flex;
    gap: 24px;
}

.nav-links a {
    margin: 0;
}

.lang-switcher {
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    background: var(--surface);
}

.lang-switcher button {
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}

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

.lang-switcher button.active {
    background: var(--accent);
    color: white;
}

@media (max-width: 600px) {
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 13px;
    }
    .lang-switcher button {
        padding: 3px 8px;
        font-size: 11px;
    }
}
