:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --bg-elevated: #ffffff;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --border: #d2d2d7;
    --accent: #007aff;
    --accent-hover: #0066d4;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --radius: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-alt: #0a0a0a;
        --bg-elevated: #1c1c1e;
        --text: #f5f5f7;
        --text-muted: #98989d;
        --border: #2c2c2e;
        --accent: #0a84ff;
        --accent-hover: #409cff;
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(0, 0, 0, 0.72); }
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
}
.site-header .brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.site-header nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
}
.site-header nav a { color: var(--text-muted); }
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 64px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero img.app-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.hero .tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 640px;
}
.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: 12px 24px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
    border: 0;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
}
.btn-ghost {
    color: var(--accent);
    background: transparent;
}
.btn-ghost::after { content: " ›"; }

.platform-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Sections */
section.block {
    padding: 80px 0;
}
section.block + section.block { border-top: 1px solid var(--border); }
section.block.alt { background: var(--bg-alt); }

section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}
section .lede {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 0 48px;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 20px;
}
.feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}
.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* Source cards */
.sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.source {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--bg-elevated);
}
.source .name {
    font-weight: 600;
    margin-bottom: 4px;
}
.source .count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.source p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq {
    max-width: 720px;
}
.faq details {
    border-top: 1px solid var(--border);
    padding: 16px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 22px;
    color: var(--text-muted);
    line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
    margin: 12px 0 0;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 48px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}
.site-footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
}
.site-footer nav a { color: var(--text-muted); }
.site-footer nav a:hover { color: var(--text); }

/* Article (privacy / support) */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 0;
}
.article h1 {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 8px;
}
.article .updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}
.article h2 {
    font-size: 22px;
    margin: 36px 0 12px;
}
.article p, .article li { font-size: 16px; color: var(--text); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 20px; }
.article li { margin-bottom: 6px; }
.article a { word-break: break-word; }

.callout {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 15px;
}

/* Compatibility list */
.compat {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.compat .pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--text-muted);
}

/* 404 */
.notfound {
    text-align: center;
    padding: 120px 24px;
}
.notfound h1 { font-size: 96px; margin: 0; line-height: 1; }
.notfound p { color: var(--text-muted); margin: 16px 0 32px; }
