:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 35, 0.6);
    --primary: #00f3ff; /* Cyan */
    --secondary: #7000ff; /* Electric Purple */
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: var(--glass-border);
}

.glass-effect {
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 12px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    width: 100%;
    padding-top: 60px;
}

.tag-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section-container {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 0 auto 15px;
}

/* Table */
.comparison-table-wrapper {
    overflow-x: auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Increased min-width to accommodate more columns */
    table-layout: auto; /* Allow auto layout to respect content width */
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle; /* Ensure vertical alignment */
}

th {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Specific fix for first column to prevent wrapping */
td:first-child, th:first-child {
    white-space: nowrap;
    width: 1%; /* Trick to shrink to fit content but respect nowrap */
    padding-right: 30px; /* Add some spacing after the label */
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.row-header {
    font-weight: 600;
    color: var(--primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}


/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-card {
    padding: 30px;
    position: relative;
}

.chart-card h3 {
    margin-bottom: 10px;
}

.chart-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.test-conclusion {
    padding: 30px;
    border-left: 4px solid var(--secondary);
}

.test-conclusion h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.test-conclusion ul {
    list-style: none;
}

.test-conclusion li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.test-conclusion li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Scenario Grid */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.scenario-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scenario-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 85, 0.2);
    color: #ff0055;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.scenario-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.scenario-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.scenario-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    height: 50px; /* Align heights */
}

.scenario-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spec-item .value {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.recommendation {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.rec-label {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.rec-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tag.weaviate { background: rgba(108, 255, 0, 0.15); color: #85ff3d; }
.tag.qdrant { background: rgba(180, 20, 50, 0.2); color: #ff4d6d; }
.tag.milvus { background: rgba(0, 161, 234, 0.15); color: #33ccff; }
.tag.zilliz { background: rgba(255, 66, 0, 0.15); color: #ff6b3d; }
.tag.redis { background: rgba(220, 56, 45, 0.15); color: #ff5c5c; }
.tag.pinecone { background: rgba(20, 20, 35, 0.5); border: 1px solid #fff; }
.tag.chroma { background: linear-gradient(45deg, rgba(255,0,0,0.2), rgba(0,255,0,0.2)); }

.rec-reason {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}


/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.guide-card {
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.4), rgba(10, 10, 18, 0.8));
    padding: 30px;
    border: var(--glass-border);
    border-radius: 12px;
    transition: transform 0.3s;
}

.guide-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.guide-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.guide-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.guide-card strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

/* Footer */
.footer-section {
    background: #050508;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .nav-links { display: none; } /* Mobile menu omitted for brevity in this demo */
    .charts-grid { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr; }
}

/* News Section */
.news-tabs-container {
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: var(--border-color);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
    opacity: 0; /* Animation start state */
    animation: slideIn 0.5s forwards;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    transform: translateX(10px);
}

/* Stagger animation for news items */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    margin-right: 30px;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.news-date .month {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date .year {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.news-body {
    flex: 1;
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tag-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.tag.pgvector { background: rgba(51, 103, 145, 0.3); color: #67bcf7; }

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.news-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.news-link {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.news-link a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.news-link a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        flex-direction: row;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        margin-right: 0;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
        justify-content: flex-start;
        align-items: baseline;
    }

    .news-date .day { font-size: 1.4rem; }
    
    .news-link {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.analysis-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.tag.opensearch { background: rgba(255, 159, 64, 0.2); color: #ff9f40; }

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pros h4, .cons h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros h4 { color: #4caf50; } /* Green */
.cons h4 { color: #ff5252; } /* Red */

.pros ul, .cons ul {
    list-style: none;
    padding-left: 5px;
}

.pros li, .cons li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-size: 0.8rem;
}

.cons li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ff5252;
    font-size: 0.8rem;
}/* SVG Icons */
.scenario-icon, .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.scenario-icon svg, .icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
    transition: all 0.3s ease;
}

/* Hover Effects for Icons */
.scenario-card:hover .scenario-icon,
.guide-card:hover .icon-box {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: scale(1.1);
}

.scenario-card:hover .scenario-icon svg,
.guide-card:hover .icon-box svg {
    stroke: #fff;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
}

/* Specific Colors for Different Icons (Optional variation) */
.guide-card:nth-child(2) .icon-box svg { stroke: var(--secondary); filter: drop-shadow(0 0 5px rgba(112, 0, 255, 0.5)); }
.guide-card:nth-child(3) .icon-box svg { stroke: #ff0055; filter: drop-shadow(0 0 5px rgba(255, 0, 85, 0.5)); }
.guide-card:nth-child(4) .icon-box svg { stroke: #ff9f40; filter: drop-shadow(0 0 5px rgba(255, 159, 64, 0.5)); }

/* Scenario Specific Colors */
.scenario-card:nth-child(2) .scenario-icon svg { stroke: #33ccff; }
.scenario-card:nth-child(3) .scenario-icon svg { stroke: #ff5c5c; filter: drop-shadow(0 0 5px rgba(255, 92, 92, 0.5)); }
.scenario-card:nth-child(4) .scenario-icon svg { stroke: #4bc0c0; filter: drop-shadow(0 0 5px rgba(75, 192, 192, 0.5)); }

/* Inline Icons for Headers */
.inline-icon {
    width: 24px;
    height: 24px;
    vertical-align: text-bottom;
    margin-right: 10px;
    stroke: var(--primary);
    filter: drop-shadow(0 0 3px rgba(0, 243, 255, 0.6));
}

.test-conclusion h4 {
    display: flex;
    align-items: center;
}
