:root {
    --ink: #232335;
    --muted: #6d6d80;
    --line: #e9e2f2;
    --card: #ffffff;
    --violet: #7c6cf2;
    --violet-dark: #5b4bd6;
    --pink: #e86f9e;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: #fff;
}

body.home {
    color: #fff;
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.28), transparent 38%),
        radial-gradient(circle at 92% 18%, rgba(255, 170, 220, 0.35), transparent 42%),
        linear-gradient(135deg, #667eea 0%, #764ba2 58%, #a855f7 100%);
}

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

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand:hover {
    text-decoration: none;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
}

.site-header nav a {
    opacity: 0.85;
}

.site-header nav a:hover {
    opacity: 1;
    text-decoration: none;
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding: 56px 0 96px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

h1 {
    margin: 0 0 22px;
    font-size: clamp(46px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.lead {
    margin: 0 0 30px;
    max-width: 520px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn.primary {
    background: #fff;
    color: var(--violet-dark);
    box-shadow: 0 12px 30px rgba(35, 20, 80, 0.28);
}

.btn.primary:hover {
    background: #f7f3ff;
    text-decoration: none;
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none;
}

.hero-art img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: 78% center;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(30, 16, 70, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.screenshots,
.features {
    background: #fff;
    color: var(--ink);
    margin: 0 -24px;
    padding: 88px 24px;
}

.features {
    background: #f7f5ff;
}

.section-head {
    max-width: 1120px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
}

.screenshot-grid figure {
    margin: 0;
}

.screenshot-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(45, 31, 80, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.screenshot-grid img:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(45, 31, 80, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(74, 52, 92, 0.05);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c6cf2, #c084fc);
    color: #fff;
    font-size: 22px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 24px 56px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

body.home .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 15px;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: #fff;
    font-weight: 600;
}

/* Privacy document */
.doc-page {
    background: #fff;
    color: var(--ink);
}

.doc-page .site-header {
    border-bottom: 1px solid var(--line);
}

.doc-page .site-header nav a {
    color: var(--muted);
}

.doc-page .brand {
    color: var(--ink);
}

.doc {
    max-width: 760px;
    padding-top: 40px;
    padding-bottom: 64px;
}

.doc .eyebrow {
    color: var(--violet);
    opacity: 1;
}

.doc h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 48px);
    margin-bottom: 8px;
}

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

.doc h2 {
    margin: 34px 0 10px;
    font-size: 20px;
    letter-spacing: -0.01em;
}

.doc p,
.doc li {
    color: #44445a;
    font-size: 15.5px;
}

.doc ul {
    padding-left: 22px;
    margin: 6px 0 14px;
}

.doc li {
    margin-bottom: 8px;
}

.doc a {
    color: var(--violet-dark);
    text-decoration: underline;
}

.doc code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3effb;
    font-size: 13px;
}

.doc .back {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.doc-page .site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.doc-page .site-footer strong,
.doc-page .footer-links a {
    color: var(--ink);
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 32px;
    }

    .hero-art {
        order: -1;
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .lead {
        font-size: 16px;
    }

    .screenshots,
    .features {
        padding: 64px 20px;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .site-footer {
        flex-direction: column;
    }
}
