/* ContextBits - Distinctive color palette */
:root {
    --color-primary: #B54A32;       /* Terracotta/rust */
    --color-primary-dark: #8F3A27;
    --color-secondary: #4A5D4A;     /* Olive green */
    --color-secondary-light: #6B7F6B;
    --color-bg: #FAF8F5;            /* Warm cream */
    --color-bg-alt: #F0EBE3;        /* Darker cream */
    --color-surface: #FFFFFF;
    --color-text: #2C2C2C;          /* Warm charcoal */
    --color-text-muted: #6B6B6B;
    --color-border: #E0DCD4;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 18px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 15px;
    transition: color 0.2s;
}

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

.nav-links a.btn {
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-text-muted);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Product Section */
.featured-product {
    padding: 100px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.product-info h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-info > p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    color: var(--color-primary);
    font-size: 10px;
    margin-top: 6px;
}

.feature-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-list span {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Code Block */
.code-block {
    background: #1E1E1E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #2D2D2D;
    border-bottom: 1px solid #3A3A3A;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4A4A4A;
}

.code-header .dot:nth-child(1) { background: #FF5F56; }
.code-header .dot:nth-child(2) { background: #FFBD2E; }
.code-header .dot:nth-child(3) { background: #27CA40; }

.code-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #808080;
}

.code-block pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: #E0E0E0;
}

.code-comment {
    color: #6A9955;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
    background: var(--color-secondary);
    color: white;
}

.use-cases h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.case {
    padding: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.case-icon {
    font-size: 28px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.case h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--color-bg-alt);
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-visual {
        order: -1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Active Nav Link */
.nav-links a.active {
    color: var(--color-text);
    font-weight: 500;
}

/* Products Overview Section */
.products-overview {
    padding: 100px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.products-overview h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.products-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    display: block;
    padding: 32px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
}

.product-card-coming {
    opacity: 0.7;
    cursor: default;
}

.product-card-coming:hover {
    border-color: var(--color-border);
    box-shadow: none;
}

.product-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-bg-alt);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Product Page Hero */
.hero-product {
    padding: 140px 0 80px;
}

.hero-product h1 {
    font-size: clamp(36px, 5vw, 52px);
}

/* Product Details Section */
.product-details {
    padding: 80px 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.product-details h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Specs Section */
.specs-section {
    padding: 80px 0;
}

.specs-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.spec {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.spec-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Supported Databases Section */
.supported-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.supported-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.db-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.db-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.db-name {
    font-weight: 500;
}

.db-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.db-available {
    background: #E8F5E9;
    color: #2E7D32;
}

.db-coming {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

/* Responsive - Products */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .db-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .db-grid {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Wide DB Grid */
.db-grid-wide {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

/* Comparison CTA */
.comparison-cta {
    padding: 80px 0;
    text-align: center;
}

.comparison-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.comparison-cta p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: var(--color-surface);
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

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

.comparison-table th {
    font-weight: 600;
    background: var(--color-bg-alt);
}

.comparison-table th.highlight {
    background: var(--color-primary);
    color: white;
}

.comparison-table td.highlight {
    background: rgba(181, 74, 50, 0.08);
    font-weight: 500;
}

.comparison-table td.limitation {
    color: var(--color-text-muted);
}

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

/* Competitors Detail */
.competitors-detail {
    padding: 80px 0;
}

.competitors-detail h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.competitor-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.competitor-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.competitor-card > p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.competitor-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.competitor-card li {
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.competitor-card li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.competitor-card li strong {
    color: var(--color-text);
}

/* Quickstart Section */
.quickstart-section {
    padding: 80px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.quickstart-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.code-block-large {
    max-width: 700px;
    margin: 0 auto;
}

.code-block-large pre {
    padding: 28px;
}

.code-block-large code {
    font-size: 13px;
}

/* Responsive - Comparison */
@media (max-width: 900px) {
    .db-grid-wide {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 600px) {
    .db-grid-wide {
        grid-template-columns: 1fr;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--color-surface);
        z-index: 1;
    }

    .comparison-table th:first-child {
        background: var(--color-bg-alt);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
}

.testimonial blockquote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 24px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
