:root {
    --bg: #F8F6F3;
    --card: #FFFFFF;
    --card-2: #F0EDE9;
    --stone: #F5F2EF;
    --border: #E5E5E5;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --text-primary: #0A0A0A;
    --text-secondary: #4E4E4E;
    --text-muted: #777169;
    --action: #0A0A0A;
    --action-fg: #FFFFFF;
    --accent: #22C55E;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A0A0A; --card: #161616; --card-2: #1F1F1F; --stone: #262420;
        --border: #2A2A2A; --border-subtle: rgba(255, 255, 255, 0.08);
        --text-primary: #F2F0EC; --text-secondary: #8A8A8A; --text-muted: #5A5A5A;
        --action: #F2F0EC; --action-fg: #0A0A0A; --accent: #34D399;
        --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
        --shadow-2: 0 2px 8px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--bg); color: var(--text-primary);
    line-height: 1.6; letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text-primary); text-decoration: none; transition: opacity 0.15s ease; }
a:hover { opacity: 0.7; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 24px 0; border-bottom: 1px solid var(--border-subtle); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: block; object-fit: cover; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin: 0 auto 24px; box-shadow: var(--shadow-2); }
.brand-name .muted { color: var(--text-muted); }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-secondary); align-items: center; flex-wrap: wrap; }

/* Language switcher */
.lang-switch { position: relative; font-size: 14px; }
.lang-switch summary { cursor: pointer; list-style: none; color: var(--text-secondary); white-space: nowrap; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul {
    position: absolute; inset-inline-end: 0; top: 150%; z-index: 30;
    background: var(--card); border: 1px solid var(--border-subtle); border-radius: 12px;
    box-shadow: var(--shadow-2); padding: 8px; margin: 0; list-style: none;
    max-height: 320px; overflow-y: auto; min-width: 180px;
}
.lang-switch li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--text-primary); }
.lang-switch li a:hover { background: var(--stone); opacity: 1; }
.lang-switch li a[aria-current="true"] { font-weight: 800; }

/* Hero */
.hero { padding: 80px 0 64px; text-align: center; }
.hero-badge {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-secondary); padding: 6px 14px;
    background: var(--stone); border-radius: 9999px; border: 1px solid var(--border-subtle); margin-bottom: 24px;
}
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; margin: 0 0 20px; }
h1 .muted { color: var(--text-muted); }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); max-width: 620px; margin: 0 auto 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 9999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--action); color: var(--action-fg); box-shadow: var(--shadow-1); }
.btn-secondary { background: var(--stone); color: var(--text-primary); border-color: var(--border-subtle); }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--border-subtle); }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.015em; margin: 0 0 12px; font-weight: 800; }
.section-intro { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin-bottom: 40px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border-radius: 18px; padding: 22px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-1); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--stone); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* Screenshots gallery */
.screens-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (min-width: 760px) { .screens-scroll { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; overflow-x: visible; } }
.screen-shot { scroll-snap-align: start; margin: 0; }
.screen-shot img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-2); background: #000; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--card); border-radius: 18px; padding: 24px; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-1); position: relative; }
.step-number { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--text-muted); }
.step h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* Privacy block */
.privacy-callout { background: var(--stone); border-radius: 18px; padding: 28px; border: 1px solid var(--border-subtle); }
.privacy-callout h3 { margin: 0 0 10px; font-size: 18px; }
.privacy-callout p { margin: 0 0 8px; color: var(--text-secondary); font-size: 15px; }
.check { color: var(--accent); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; }
details.faq-item { background: var(--card); border-radius: 14px; border: 1px solid var(--border-subtle); padding: 16px 18px; }
details.faq-item[open] { box-shadow: var(--shadow-1); }
details.faq-item summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform 0.15s ease; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { margin: 10px 0 0; color: var(--text-secondary); font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--border-subtle); padding: 40px 0; color: var(--text-muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }

/* RTL */
[dir="rtl"] .privacy-callout p .check { margin-inline-end: 4px; }

@media (max-width: 640px) {
    .nav-links { gap: 14px; font-size: 13px; }
    .hero { padding: 56px 0 40px; }
    .section { padding: 48px 0; }
}
