/* =========================================
   Web3 Comparison Tables Section
   ========================================= */
.comparison-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 1.5rem 5% 3rem 5%;
    /* Further reduced top padding */
    margin-top: 0;
    /* Removed margin */
    position: relative;
    overflow: hidden;
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.comparison-container {
    max-width: 1400px;
    /* Increased from 900px */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tables-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: start;
    max-width: 100%;
    flex-wrap: wrap;
}

.hero-comparison-table {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    /* Reduced from 2rem */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 0 1 550px;
    max-width: 550px;
}

.hero-comparison-table.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure equal height */
.hero-comparison-table {
    display: flex;
    flex-direction: column;
}

.table-content {
    flex-grow: 1;
}

.problem-table {
    border: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
    transition-delay: 0s;
}

.problem-table.visible {
    transition-delay: 0s;
}

.solution-table {
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
    transition-delay: 0.1s;
}

.solution-table.visible {
    transition-delay: 0.1s;
}

.table-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.problem-table .table-header {
    color: #EF4444;
}

.solution-table .table-header {
    color: #10B981;
}

.table-header i {
    font-size: 2rem;
}

.table-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.table-subtitle {
    color: var(--gray-700);
    font-size: 1rem;
    /* Reduced from 1.05rem */
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    line-height: 1.6;
}

.table-content h4 {
    color: var(--dark);
    font-size: 1.1rem;
    /* Reduced from 1.2rem */
    font-weight: 700;
    margin-bottom: 1.2rem;
    /* Reduced from 1.5rem */
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--gray-800);
    font-size: 0.95rem;
    /* Reduced from 1rem */
    line-height: 1.7;
    /* Reduced from 1.8 */
    margin-bottom: 0.8rem;
    /* Reduced from 1rem */
    padding: 0.6rem;
    /* Reduced from 0.75rem */
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(5px);
}

.problem-table .feature-list li i {
    color: #EF4444;
    font-size: 1.1rem;
    /* Reduced from 1.2rem */
    margin-top: 0.2rem;
}

.solution-table .feature-list li i {
    color: #10B981;
    font-size: 1.1rem;
    /* Reduced from 1.2rem */
    margin-top: 0.2rem;
}

.table-footer {
    margin-top: 1.5rem;
    /* Reduced from 2rem */
    padding-top: 1.2rem;
    /* Reduced from 1.5rem */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    /* Reduced from 1rem */
    font-weight: 600;
    font-style: italic;
}

.problem-table .table-footer {
    color: #EF4444;
}

.solution-table .table-footer {
    color: #10B981;
}

@media (max-width: 768px) {
    .comparison-section {
        padding: 1.5rem 5% 3rem 5%;
        /* Reduced mobile padding */
    }

    .tables-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-comparison-table {
        padding: 1.5rem;
    }

    .table-header h3 {
        font-size: 1.6rem;
    }

    .table-header i {
        font-size: 1.5rem;
    }

    .table-subtitle {
        font-size: 0.95rem;
    }

    .table-content h4 {
        font-size: 1.1rem;
    }

    .feature-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .comparison-section {
        padding: 3rem 5%;
    }

    .table-header h3 {
        font-size: 1.4rem;
    }

    .table-subtitle {
        font-size: 0.9rem;
    }

    .feature-list li {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .table-footer {
        font-size: 0.9rem;
    }
}