/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2563eb;
}

.logo {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    color: #2563eb;
}

.github-link {
    background: #333;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.github-link:hover {
    background: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background: #fff;
    color: #2563eb;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.install-command {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    gap: 12px;
    max-width: fit-content;
}

.install-command code {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: #a7f3d0;
}

.copy-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Demo Window */
.hero-demo {
    position: relative;
}

.demo-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.demo-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.demo-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-size: 0.9rem;
}

.demo-dots {
    display: flex;
    gap: 6px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.demo-dots span:nth-child(1) { background: #ff5f56; }
.demo-dots span:nth-child(2) { background: #ffbd2e; }
.demo-dots span:nth-child(3) { background: #27ca3f; }

.demo-code {
    padding: 20px;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.demo-code pre {
    margin: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Quick Start Section */
.quick-start {
    padding: 80px 0;
    background: #f8fafc;
}

.quick-start h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.quick-start-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.step {
    margin-bottom: 40px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.code-block {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.quick-start-demo h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.demo-output {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.output-line {
    margin-bottom: 8px;
}

.output-line.success { color: #10b981; }
.output-line.info { color: #3b82f6; }
.output-line.warning { color: #f59e0b; }

/* Roadmap Section */
.roadmap {
    padding: 80px 0;
    background: white;
}

.roadmap h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #10b981, #3b82f6, #8b5cf6, #f59e0b);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.timeline-item.completed .timeline-marker {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.timeline-item.in-progress .timeline-marker {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.timeline-item.planned .timeline-marker {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: white;
}

.timeline-item.future .timeline-marker {
    border-color: #f59e0b;
    background: #f59e0b;
    color: white;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.timeline-status {
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9rem;
}

.completed .timeline-status {
    background: #d1fae5;
    color: #065f46;
}

.in-progress .timeline-status {
    background: #dbeafe;
    color: #1e40af;
}

.planned .timeline-status {
    background: #e0e7ff;
    color: #5b21b6;
}

.future .timeline-status {
    background: #fef3c7;
    color: #92400e;
}

.roadmap-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #374151;
}

.category ul {
    list-style: none;
    padding-left: 0;
}

.category li {
    padding: 4px 0;
    color: #6b7280;
    position: relative;
    padding-left: 20px;
}

.category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Metrics Section */
.metrics {
    padding: 80px 0;
    background: #f8fafc;
}

.metrics h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1f2937;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.metrics-category {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.metrics-category h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1f2937;
}

.metric-item {
    margin-bottom: 20px;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 5px;
}

.metric-label {
    display: block;
    color: #6b7280;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-start-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .roadmap-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .roadmap-categories {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .install-command {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-window {
        transform: none;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.timeline-item,
.metrics-category {
    animation: fadeInUp 0.6s ease-out;
}

/* Syntax highlighting for code blocks */
.demo-code .keyword { color: #569cd6; }
.demo-code .string { color: #ce9178; }
.demo-code .function { color: #dcdcaa; }
.demo-code .comment { color: #6a9955; }
.demo-code .number { color: #b5cea8; }

/* Documentation Pages Styles */
.docs-content {
    background: #ffffff;
    min-height: 100vh;
    padding-top: 80px;
    color: #1e293b;
}

body {
    background: #ffffff;
    color: #1e293b;
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.docs-sidebar {
    background: #f8fafc;
    padding: 30px 20px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #e2e8f0;
}

.docs-sidebar h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-item {
    color: #64748b;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-left-color: #3b82f6;
}

.sidebar-nav .nav-item.active {
    background: #dbeafe;
    color: #1d4ed8;
    border-left-color: #3b82f6;
}

.docs-main {
    background: #ffffff;
    padding: 0;
    color: #1e293b;
    line-height: 1.7;
}

.docs-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.docs-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.docs-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.docs-section {
    margin: 40px 0;
    padding: 30px 0;
}

.docs-section h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-steps {
    margin: 30px 0;
}

.setup-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.docs-section h3 {
    color: #374151;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.docs-section h4 {
    color: #4b5563;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.docs-section p {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.docs-section ul, .docs-section ol {
    color: #374151;
    margin: 15px 0;
    padding-left: 25px;
}

.docs-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #374151;
}

.docs-section strong {
    color: #1e293b;
    font-weight: 600;
}

.docs-section em {
    color: #4b5563;
    font-style: italic;
}

.code-example {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.code-example pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-example code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: system-ui, -apple-system, sans-serif;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.code-tabs {
    display: flex;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

.code-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-tab.active {
    background: #1e293b;
    color: #e2e8f0;
}

.code-tab:hover:not(.active) {
    background: #cbd5e1;
    color: #374151;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.config-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-card h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.config-card p {
    color: #64748b;
    margin-bottom: 15px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 10px;
    font-size: 0.9rem;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #92400e;
}

.warning-box h4 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.info-box {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #1e40af;
}

.info-box h4 {
    color: #1e40af;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.success-box {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    color: #065f46;
}

.success-box h4 {
    color: #065f46;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.docs-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

/* When there's only one navigation button, center it */
.docs-navigation.single-nav {
    justify-content: center;
}

.nav-prev, .nav-next {
    color: #ffffff;
    background: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #3b82f6;
    display: inline-block;
}

.nav-prev:hover, .nav-next:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Documentation */
@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .docs-sidebar {
        position: static;
        order: 2;
        margin-top: 30px;
    }
    
    .docs-header h1 {
        font-size: 2rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .code-example pre {
        font-size: 0.8rem;
        padding: 15px;
    }
}

/* Ensure all text is visible and readable */
.docs-content * {
    color: inherit;
}

.docs-content h1, .docs-content h2, .docs-content h3, .docs-content h4, .docs-content h5, .docs-content h6 {
    color: #1e293b !important;
}

.docs-content p, .docs-content li, .docs-content span {
    color: #374151 !important;
}

.docs-content a {
    color: #3b82f6 !important;
}

.docs-content a:hover {
    color: #1d4ed8 !important;
}
