:root {
    --primary-color: #7400FF;
    --primary-light: #9747FF;
    --secondary-color: #00C8C8;
    --dark-color: #1D1A31;
    --light-color: #FAFAFA;
    --border-color: #EAEAEA;
    --info-bg: #F6F4FF;
    --note-bg: #FFF8F0;
    --success-color: #00C895;
    --text-color: #4F4C6B;
    --heading-color: #1D1A31;
    --nav-bg: #FFFFFF;
    --nav-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    padding-top: 70px; /* Space for fixed navbar */
}

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

a:hover {
    color: var(--primary-light);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box {
    background-color: var(--info-bg);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(116, 0, 255, 0.1);
    box-shadow: 0 2px 8px rgba(116, 0, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(116, 0, 255, 0.08);
}

.note {
    background-color: var(--note-bg);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 125, 0, 0.1);
}

.installation-steps {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-top: 2.5rem;
    border: 1px solid var(--border-color);
    padding-top: 2rem;
}

.step {
    display: none;
    padding: 2.5rem;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.os-options {
    display: flex;
    justify-content: space-around;
    margin: 2.5rem 0;
    gap: 1rem;
}

.os-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 160px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.os-button:hover {
    border-color: var(--primary-color);
    background-color: var(--info-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(116, 0, 255, 0.1);
}

.os-button.selected {
    border-color: var(--primary-color);
    background-color: var(--info-bg);
    color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(116, 0, 255, 0.1);
}

.code-block {
    background-color: var(--dark-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    position: relative;
    overflow-x: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.code-block code {
    color: white;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
    white-space: pre;
    font-size: 0.9rem;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copy-button.copy-success {
    background-color: rgba(0, 200, 149, 0.3);
    color: white;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.next-prev-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(116, 0, 255, 0.2);
}

button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(116, 0, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #c4b6e0;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.prev-button {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prev-button:hover {
    background-color: #f9f9f9;
    color: var(--dark-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tips-section {
    background-color: rgba(0, 200, 149, 0.05);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 200, 149, 0.1);
}

/* OS Switcher styles */
.os-switcher {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.os-switch-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.os-switch-btn:hover {
    background-color: var(--info-bg);
}

.os-switch-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Command Sections */
.command-section {
    display: none;
}

.command-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Command Cards */
.commands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.command-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.command-card h3 {
    padding: 1.25rem;
    background-color: var(--info-bg);
    margin-bottom: 0;
    border-bottom: 1px solid rgba(116, 0, 255, 0.1);
}

.command-list {
    padding: 1rem;
}

.command-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.command-item:last-child {
    border-bottom: none;
}

.command-item code {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.command-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

ol, ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.75rem;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.code-block code {
    background-color: transparent;
    padding: 0;
}

p {
    margin-bottom: 1rem;
}

/* Progress indicator */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 0 2.5rem 2rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background-color: var(--border-color);
    z-index: 1;
}

.progress-step {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--primary-color);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(116, 0, 255, 0.15);
}

.progress-step.completed {
    background-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(0, 200, 149, 0.15);
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .os-options {
        flex-direction: column;
        align-items: center;
    }
    
    .os-button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .progress-bar {
        margin: 0 1.5rem 1.5rem;
    }
    
    /* Command cards mobile adjustments */
    .commands-container {
        grid-template-columns: 1fr;
    }
    
    .command-card {
        width: 100%;
    }
    
    /* Navigation mobile adjustments */
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    /* OS switcher mobile */
    .os-switcher {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .os-switch-btn {
        width: 100%;
    }
}