/* Basic Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header and Navigation */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: white;
    color: #667eea;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* Example Section */
.example {
    padding: 4rem 0;
    background: #f8f9fa;
}

.example h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Code Blocks */
pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

/* Get Started Section */
.get-started {
    padding: 4rem 0;
    background: white;
}

.get-started h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.getting-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gs-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.gs-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.gs-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Content Section */
.content {
    padding: 3rem 0;
    background: white;
}

.content article {
    max-width: 900px;
    margin: 0 auto;
}

.content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #34495e;
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1rem;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.content table th,
.content table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Documentation Layout */
.doc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.doc-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.doc-nav h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.doc-nav ul {
    list-style: none;
}

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

.doc-nav a {
    color: #667eea;
    text-decoration: none;
}

.doc-nav a:hover {
    text-decoration: underline;
}

.doc-content section {
    margin-bottom: 3rem;
}

.spec-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Goals */
.goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.goal {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.goal h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Libraries Page */
.library-list,
.tools-list {
    margin: 2rem 0;
}

.library-item,
.tool-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.library-header,
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.library-header h3,
.tool-header h3 {
    margin: 0;
    color: #2c3e50;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #27ae60;
    color: white;
}

.status-badge.status-dev {
    background: #3498db;
}

.status-badge.status-planned {
    background: #95a5a6;
}

.library-features,
.tool-features {
    margin: 1rem 0;
}

.library-features h4,
.tool-features h4 {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.library-features ul,
.tool-features ul {
    margin-left: 1.5rem;
}

.library-links,
.tool-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.intro {
    background: #e8eaf6;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cta-section {
    background: #e8eaf6;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    margin-top: 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .doc-layout {
        grid-template-columns: 1fr;
    }
    
    .doc-sidebar {
        position: static;
    }
}
