:root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e5e5;
    --max-width: 720px;
    --radius: 8px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 2rem 1.5rem;
}

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

header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

header nav {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

header nav a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 1.25rem;
}

header nav a:hover,
header nav a.active {
    color: var(--accent);
}

main h1, main h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

main h1 {
    font-size: 1.75rem;
}

main h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

main h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

main h1:first-child,
main h2:first-child {
    margin-top: 0;
}

main p {
    margin-bottom: 1rem;
}

main ul, main ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

main li {
    margin-bottom: 0.25rem;
}

main a {
    color: var(--accent);
    text-decoration: underline;
}

main a:hover {
    color: var(--accent-hover);
}

.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

main section {
    margin-bottom: 3rem;
}

.cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.15s ease;
}

.cta:hover {
    background: var(--accent-hover);
    color: white;
}

.platforms {
    text-align: center;
}

.platforms h2 {
    margin-bottom: 0.5rem;
}

.platforms p {
    color: var(--muted);
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 480px;
    margin: 0 auto;
}

.platforms-grid img {
    height: 36px;
    width: auto;
    max-width: 100%;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.platforms-grid img:hover {
    opacity: 1;
}

.steps-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2.5rem;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.step-image {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: block;
}

@media (max-width: 600px) {
    .step {
        grid-template-columns: 36px 1fr;
        gap: 0.75rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

.screenshots {
    margin-top: 1rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.25rem;
}

.screenshot-grid figure {
    margin: 0;
}

.screenshot-grid img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 0.75rem;
}

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

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f0f;
        --fg: #f5f5f5;
        --muted: #9a9a9a;
        --border: #2a2a2a;
    }

    .step-image {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }

    .platforms-grid img {
        opacity: 1;
    }
}
