:root {
    --primary: #22C55E;
    --primary-hover: #16A34A;
    --bg: #FFFFFF;
    --text: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --terminal-bg: #F3F4F6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --text: #F9FAFB;
        --text-muted: #9CA3AF;
        --border: #1F2937;
        --terminal-bg: #111827;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 28px;
    width: 28px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-nav {
    background: var(--text);
    color: var(--bg) !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: opacity 0.2s;
}

.btn-nav:hover {
    opacity: 0.9;
}

/* Hero */
.download-hero {
    padding: 6rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.os-selector {
    display: flex;
    gap: 1rem;
    background: var(--terminal-bg);
    padding: 0.25rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

.os-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.os-item.active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.os-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.terminal-box {
    background: var(--terminal-bg);
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.terminal-box code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--text);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--border);
    color: var(--text);
}

.terminal-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.or-separator {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    max-width: 500px;
}

.or-separator::before,
.or-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border);
}

.or-separator::before { left: 0; }
.or-separator::after { right: 0; }

.btn-download {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 1.5rem;
}

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

.requirements {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    h1 {
        font-size: 2.25rem;
    }
}
