:root {
    --bg-gradient: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --text-main: #0f172a;
    --text-muted: #475569;
    --card-bg: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success-gradient: linear-gradient(135deg, #22c55e, #16a34a);
    --success-hover: linear-gradient(135deg, #16a34a, #15803d);
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --code-bg: #f1f5f9;
    --code-text: #0f172a;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(135deg, #0f172a, #020617);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --card-bg: #1e293b;
        --accent: #3b82f6;
        --accent-hover: #60a5fa;
        --border-color: #334155;
        --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
        --code-bg: #0f172a;
        --code-text: #38bdf8;
    }
}

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

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 100px 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 23, 42, 0.8);
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main) !important;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#download-cta {
    background: var(--success-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#download-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.hero {
    text-align: center;
    padding: 60px 0 40px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.info {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.features-section, .download-section {
    padding: 80px 0 20px 0;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    box-shadow: var(--shadow);
}

.feature-card span {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.os-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
}

.os-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow);
}

.os-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.card-note {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 750px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.badge {
    height: 60px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.macInstructions {
    background: var(--code-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.macInstructions p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.macInstructions code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(0, 0, 0, 0.05);
    color: var(--code-text);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.code-wrapper {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.macInstructions code {
    display: block;
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(0, 0, 0, 0.05);
    color: var(--code-text);
    padding: 14px 52px 14px 16px; /* Added right padding so text never overlaps button */
    border-radius: 6px;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
    .macInstructions code {
        background: rgba(255, 255, 255, 0.05);
    }
}

.copy-btn {
    position: absolute;
    right: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.copy-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--code-bg);
    transform: scale(1.05);
}

.copy-btn.copied {
    color: #22c55e !important;
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1);
}

@media (prefers-color-scheme: dark) {
    .macInstructions code {
        background: rgba(255, 255, 255, 0.05);
    }
}


@media screen and (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .os-card {
        padding: 24px;
    }

    .badge-container {
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        width: 100%;
        height: auto;
        max-width: 280px;
        margin: 0 auto;
    }
}