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

:root {
    --primary: #00add8;
    --primary-dark: #0090b8;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.nav-link .nav-logo {
    height: 22px;
    width: auto;
    border-radius: 4px;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-art {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 1.5rem auto 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

.version {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Features */
.features {
    padding: 1.5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.feature {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
}

.feature:hover {
    border-color: var(--primary);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* How It Works */
.steps {
    padding: 1.5rem 0 1rem;
}

.steps h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.step-number {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.step p strong {
    color: var(--text);
}

/* Download Section */
.download-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.download-section {
    padding: 1.5rem 0;
    text-align: center;
}

.download-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.download-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.download-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.download-card > p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Updates page */
.versions {
    padding: 0.5rem 0 1.5rem;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.version-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-name {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.version-num {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

.update-entry {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 0 auto 1.5rem;
    max-width: 800px;
}

.update-entry h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.update-list {
    margin-left: 1.25rem;
    color: var(--text-muted);
}

.update-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.update-list li strong {
    color: var(--text);
}

.no-updates {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem 0 2rem;
}

kbd {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Legal pages */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.legal h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.legal ul,
.legal ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.legal strong {
    color: var(--text);
}

.legal a {
    color: var(--primary);
}

.legal code {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.85em;
}

.legal .updated {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link span {
        display: none;
    }

    main {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .download-options {
        grid-template-columns: 1fr;
    }
}
