:root {
    --accent: #00FF7F;
    --accent-dark: #00cc66;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --border-accent: #00FF7F33;
    
    /* Fluid typography scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    
    /* Fluid spacing scale */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    
    /* Responsive sidebar width */
    --sidebar-width: 280px;
    --sidebar-width-md: 240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: var(--space-lg);
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    margin-bottom: 3rem;
}

.logo-text {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent);
}

.logo-subtitle {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent);
    background: var(--border-accent);
}

.content {
    margin-left: var(--sidebar-width);
    padding: var(--space-xl);
    min-height: 100vh;
    min-height: 100dvh;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
}

.section {
    margin-bottom: var(--space-xl);
    padding-top: var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

.accent {
    color: var(--accent);
}

.subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
}

.intro-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.intro-card strong {
    color: var(--accent);
}

h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.section-number {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--border-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.tool-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    flex-grow: 1;
}

.tool-url {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-family: monospace;
    margin-top: auto;
}

.ide-card {
    cursor: default;
}

.ide-card:hover {
    transform: none;
}

.important-box {
    background: linear-gradient(135deg, var(--border-accent), transparent);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.important-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.important-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.link-button {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.link-button:hover {
    background: var(--accent-dark);
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-header {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.tip-box {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.tip-box strong {
    color: var(--accent);
}

.tip-box code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.warning-box {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box strong {
    color: #ffc800;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.stack-header {
    margin-bottom: 1rem;
}

.stack-label {
    background: var(--border-accent);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stack-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stack-card ul {
    list-style: none;
}

.stack-card li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.stack-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.methodology-content h3 {
    margin: 2rem 0 1rem;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--border-accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.docker-box ul {
    list-style: none;
    margin-top: 1rem;
}

.docker-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.docker-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
}

.architecture-content h3 {
    margin: 2rem 0 1rem;
}

.architecture-content h3:first-child {
    margin-top: 0;
}

.readme-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.readme-checklist li {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.commits-content h3 {
    margin: 2rem 0 1rem;
}

.commits-content h3:first-child {
    margin-top: 0;
}

.commits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.commit-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
}

.commit-type code {
    background: var(--border-accent);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.commit-type span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checklist-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.checklist-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checklist-item label {
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.checklist-item input:checked + label {
    color: var(--accent);
    text-decoration: line-through;
}

.final-message {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--border-accent), transparent);
    border: 1px solid var(--accent);
    border-radius: 12px;
}

.final-message h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.final-message p {
    color: var(--text-secondary);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* Tablet styles */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: var(--sidebar-width-md);
    }
    
    .content {
        padding: var(--space-lg);
        width: calc(100% - var(--sidebar-width-md));
    }
    
    .stack-grid,
    .benefits-list,
    .readme-checklist {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 50;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    .content {
        margin-left: 0;
        padding: var(--space-md);
        padding-top: 4rem;
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .tool-card {
        min-height: auto;
    }
    
    h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .section-number {
        align-self: flex-start;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .content {
        padding: var(--space-sm);
        padding-top: 3.5rem;
        width: 100%;
    }
    
    .intro-card,
    .tool-card,
    .important-box,
    .code-block {
        padding: var(--space-md);
    }
    
    .logo {
        margin-bottom: var(--space-lg);
    }
    
    .nav-links {
        gap: var(--space-xs);
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: var(--text-xs);
    }
}
