:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --success-color: #10b981;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
}

section h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

section h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

section li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Code Blocks */
.code-block {
    background-color: var(--code-bg);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
}

.code-block code {
    color: var(--code-text);
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Inline Code */
code {
    background-color: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

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

/* Template Cards */
.template-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.template-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.template-card ul {
    margin-bottom: 1rem;
}

/* Steps */
.step {
    margin-bottom: 2.5rem;
}

.step h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* Tables */
.options-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.options-table thead {
    background-color: var(--primary-color);
    color: white;
}

.options-table th,
.options-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.options-table tbody tr:hover {
    background-color: var(--light-bg);
}

.options-table tbody tr:last-child td {
    border-bottom: none;
}

/* Architecture Diagram */
.architecture-diagram {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px solid var(--border-color);
}

.architecture-diagram pre {
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    display: inline-block;
    text-align: left;
}

/* Module Cards */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.module-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.module-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--code-bg);
    color: var(--code-text);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .options-table {
        font-size: 0.9rem;
    }
    
    .options-table th,
    .options-table td {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-color);
        padding: 1rem 0;
    }
    
    .code-block {
        border: 1px solid var(--border-color);
    }
    
    a {
        color: var(--text-color);
        text-decoration: underline;
    }
}
