* {
    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: #f8f9fa;
}

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

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

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

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

.nav-links a:hover {
    color: #3498db;
}

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

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

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.open-source-badge {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* Installation Section */
.installation {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.installation h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.open-source-note {
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #c3e6cb;
}

.download-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.download-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
    border: 2px solid transparent;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-icon {
    font-size: 2rem;
}

.download-info {
    display: flex;
    flex-direction: column;
}

.download-info strong {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.download-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-windows {
    background: linear-gradient(135deg, #0078d7 0%, #00bcf2 100%);
    color: white;
    border-color: #0078d7;
}

.download-linux {
    background: linear-gradient(135deg, #e95420 0%, #f99b11 100%);
    color: white;
    border-color: #e95420;
}

.download-mac {
    background: linear-gradient(135deg, #555 0%, #999 100%);
    color: white;
    border-color: #555;
}

.download-source {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border-color: #333;
}

.download-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.download-note a {
    color: #3498db;
    text-decoration: none;
}

.download-note a:hover {
    text-decoration: underline;
}

.install-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background-color: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.step pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

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

.default-credentials {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.default-credentials h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.default-credentials p {
    color: #856404;
    margin-bottom: 0.5rem;
}

.warning {
    color: #dc3545;
    font-weight: bold;
    margin-top: 1rem;
}

/* Documentation Section */
.documentation {
    padding: 4rem 0;
    background-color: white;
}

.documentation h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.doc-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e9ecef;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.doc-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Usage Section */
.usage {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.usage h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.usage-commands {
    max-width: 800px;
    margin: 0 auto;
}

.usage-commands pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
}

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

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

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* 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: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
}

/* Features Detail */
.features-detail {
    padding: 4rem 0;
    background-color: white;
}

.feature-detail-card {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.feature-detail-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-detail-card ul {
    list-style-position: inside;
    color: #666;
}

.feature-detail-card li {
    margin-bottom: 0.5rem;
}

/* Configuration Content */
.configuration-content {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.config-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.config-item {
    margin-bottom: 2rem;
}

.config-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.config-item ul {
    list-style-position: inside;
    color: #666;
}

.config-item li {
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* API Content */
.api-content {
    padding: 4rem 0;
    background-color: white;
}

.api-section {
    margin-bottom: 3rem;
}

.api-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.api-item {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.api-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.api-item p {
    color: #666;
    margin-bottom: 1rem;
}

.api-item pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

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

/* Troubleshooting Content */
.troubleshooting-content {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.troubleshoot-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.troubleshoot-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.issue-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.issue-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.issue-card p {
    color: #666;
    margin-bottom: 1rem;
}

.issue-card strong {
    color: #2c3e50;
}

.issue-card pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 1rem;
}

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

.issue-card ul {
    list-style-position: inside;
    color: #666;
    margin-top: 1rem;
}

.issue-card li {
    margin-bottom: 0.5rem;
}

.help-card {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.help-card h3 {
    color: #0c5460;
    margin-bottom: 1rem;
}

.help-card ul {
    list-style-position: inside;
    color: #0c5460;
}

.help-card li {
    margin-bottom: 0.5rem;
}

.help-card a {
    color: #0c5460;
    text-decoration: underline;
}

/* Back Link */
.back-link {
    padding: 2rem 0;
    background-color: white;
    text-align: center;
}

/* Error Page */
.error-page {
    padding: 6rem 0;
    background-color: white;
    text-align: center;
}

.error-page h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .features-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .feature-detail-card,
    .config-section,
    .api-item,
    .issue-card {
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        min-width: auto;
    }
}
.new-badge {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 600;
    vertical-align: middle;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 999px;
    background: #5b5fe0;
    color: #fff;
}

/* Product screenshots */
.hero-shot {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 2.5rem auto 0;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.screenshots {
    padding: 4rem 0;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.shots-grid figure {
    margin: 0;
}

.shots-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.shots-grid figcaption {
    margin-top: 0.6rem;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.8;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* Guides and the comparison page */
.guide {
    padding: 3rem 0 4rem;
    background-color: #f8f9fa;
}

.guide-body {
    max-width: 860px;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.guide-body h2 {
    color: #2c3e50;
    margin: 2.2rem 0 0.8rem;
    scroll-margin-top: 1rem;
}

.guide-body p,
.guide-body li {
    color: #444;
    margin-bottom: 0.7rem;
}

.guide-body ul,
.guide-body ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.guide-body li > ul {
    margin-top: 0.5rem;
}

.guide-body code {
    background: #f1f3f5;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.92em;
    word-break: break-word;
}

.guide-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.guide-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.guide-lead {
    font-size: 1.15rem;
}

.guide-note {
    background: #eef4ff;
    border-left: 4px solid #667eea;
    padding: 0.8rem 1rem;
    border-radius: 4px;
}

.guide-toc {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.guide-toc ol {
    margin: 0.5rem 0 0;
}

.guide-shot {
    margin: 1.2rem 0 1.8rem;
}

.guide-shot img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.guide-shot figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.table-scroll {
    overflow-x: auto;
    margin: 1.5rem 0 0.5rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.compare-table thead th.us {
    background: #667eea;
}

.compare-table tbody th {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.compare-table td.yes {
    color: #1e7e34;
    font-weight: 600;
}

.compare-table td.no {
    color: #a33;
}

.compare-table tbody td:nth-child(2) {
    background: #f4f5ff;
}

.compare-note {
    font-size: 0.9rem;
    color: #777 !important;
}

.guide-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guide-card {
    display: block;
    padding: 1.4rem 1.6rem;
    border: 1px solid #e3e6ea;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.guide-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.guide-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.guide-card p {
    margin: 0;
}

@media (max-width: 768px) {
    .guide-body {
        padding: 1.5rem 1.2rem;
    }

    .compare-table tbody th {
        white-space: normal;
    }
}
